{"id":419,"date":"2017-07-09T21:52:00","date_gmt":"2017-07-09T13:52:00","guid":{"rendered":"http:\/\/note.systw.net\/note\/?p=419"},"modified":"2025-07-27T18:25:56","modified_gmt":"2025-07-27T10:25:56","slug":"honeypot","status":"publish","type":"post","link":"https:\/\/systw.net\/note\/archives\/419","title":{"rendered":"Honeypot"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>honeypot(\u871c\u7f50)<\/strong><br>\u7528\u4f86\u5438\u5f15\u653b\u64ca\u8005\u4e26\u8a18\u9304\u653b\u64ca\u65b9\u5f0f\u800c\u5efa\u7acb\u4e4b\u7cfb\u7d71\u74b0\u5883<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>honeypot\u7528\u9014<\/strong><br>\u53ea\u8981\u5c08\u6ce8\u770b\u653b\u64calog,\u6240\u4ee5\u53ef\u4ee5\u6e1b\u5c11\u8981\u5206\u6790\u7684\u8cc7\u6599<br>\u7d50\u5408ips,firewall,&#8230;\u7b49\u505a\u6df1\u5c64\u9632\u79a6<br>\u96fb\u8166\u72af\u7f6a\u53d6\u8b49<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>honeypot advantages:<\/strong><br>small data sets<br>reduced false positives<br>reduced false negatives<br>cost effective<br>simplicity<br><strong>honeypot disadvantages:<\/strong><br>limited view<br>risks<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>types of honeypots<\/strong><br><strong>low-interaction honeypot<\/strong>: simulates only some parts<br>\u7c21\u55ae\u7684\u6a21\u64ec\u7cfb\u7d71,\u4e0d\u8655\u7406\u653b\u64ca\u6210\u529f\u5f8c\u7684\u6a21\u64ec<br>ex:specter,honeyd,kfsensor<br><strong>high-interaction honeypot<\/strong>: simulates all aspects of an operating system.<br>\u9ad8\u5ea6\u6a21\u64ec\u7cfb\u7d71,\u5305\u62ec\u653b\u64ca\u6210\u529f\u5f8c\u7684\u6a21\u64ec<br>ex:honeynets<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ps:<br>physical honeypots: \u8f03\u4e0d\u65b9\u4fbf,\u4f46\u74b0\u5883\u771f\u5be6\u8f03\u96e3\u88ab\u67e5\u89ba<br>virtual honeypots: \u65b9\u4fbf,\u4f46\u90e8\u4efd\u60e1\u610f\u7a0b\u5f0f\u6709\u8fa6\u6cd5\u77e5\u9053\u662fhoneypot<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8230;<br><br><strong>detect honeypot tool:<\/strong><br>send-safe honeypot hunter<br>nessus security scanner<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">###############################################################<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5e38\u898b\u7684honeypot\u4ecb\u7d39<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Kippo<\/strong><br>an SSH honeypot that can log brute force attacks, where remote the remote attempts to guess logon credentials of an SSH server. Best of all, Kippo is able to record and replay the attacker&#8217;s interactions with the emulated shell on the fake SSH server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Glastopf<\/strong>(server-side honeypots)<br>a web application honeypot. It emulates often-exploited web vulnerabilities, such as remote and local file inclusion and SQL injection. Glastopf examines the attacker&#8217;s HTTP request and attempts to respond according to expectations to, for instance, download malicious files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Dionaea<\/strong>(server-side honeypots,low-interaction honeypot)<br>a honeypot for collecting malware. It emulates vulnerabilities in Windows services often targeted by malware, such as SMB, HTTP, TFP and FTP. Dionaea&#8217;s handling of the SMB protocol is particularly liked by researchers, as is its ability to emulate the execution of the attacker&#8217;s shellcode.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>thug<\/strong>(client-side honeypots,low-interaction honeypot)<br>Thug is a honeypot focused on the detection of malicious web pages. It emulates the behaviour of a typical web browser.<br>The tool uses the Google V8 JavaScript engine and implements its own Document Object Model (DOM).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Nepenthes<\/strong><br>one of the most well-known and widely deployed low-interaction honeypots on the Internet. Markus K\u00f6tter and Paul B\u00e4cher first developed it in 2005. Nepenthes includes several modules for emulating Microsoft vulnerabilities that can be remotely exploited by systems scanning the Internet. In this section, you&#8217;ll learn how to collect malware samples, monitor attacks with IRC logging, and accept web-based submissions of malware from your nepenthes sensors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><br><strong>\u5176\u4ed6opensource honeypot:<\/strong><br>bubblegum proxypot<br>jackpot<br>backofficer friendly<br>bait-n-switch<br>bigeye<br>honeyweb<br>deception toolkit<br>labrea tarpit<br>honeyd<br>honeynets<br>sendmail spam trap<br>tiny honeypot<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u5176\u4ed6commerical honeypot:<\/strong><br>KFSensor<br>NetBait<br>ManTrap<br>Specter<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ps:<br>honeyclient:\u6a21\u64ec\u7528\u6236\u7aef\u700f\u89bd\u7db2\u8def,\u767c\u751f\u5b89\u5168\u554f\u984c\u6703\u963b\u64cb<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>refer<br>https:\/\/zeltser.com\/honeypots-for-malware-ssh-web-attacks\/<br>Malware Analyst&#8217;s Cookbook and DVD.pdf<br><br>###############################################################<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Honeypot Dionaea<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Dionaea<br>https:\/\/github.com\/rep\/dionaea<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>1<br>Deploy by honeydrive<\/strong><br>download honeydrive and eanble by virtual box or vmware<br>https:\/\/sourceforge.net\/projects\/honeydrive\/<br>ps<br>honeydrive ova to vmx of esxi<br>refer<br>http:\/\/bruteforce.gr\/honeydrive-3-vmware-guide.html<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>2<br>configuration and enable honeypot<\/strong><br>#edit configuration<br>\/opt\/dionaea\/etc\/dionaea\/dionaea.conf<br>#run script<br>\/honeydrive\/dionaea-vagrant\/runDionaea.sh<br>#check honeypot is enable<br>ps aux | grep dionaea<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ps:<br>#dionaea log path<br>\/opt\/dionaea\/var\/log\/dionaea.log<br>\/opt\/dionaea\/var\/dionaea\/logsql.sqlite<br>ps:<br>#catched malware(binaries) and shellcode(bitstreams) path<br>\/opt\/dionaea\/var\/dionaea\/binaries<br>\/opt\/dionaea\/var\/dionaea\/bistreams<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3<br>other tool<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">#manage by dionaeaFR<br>python \/honeydrive\/DionaeaFR\/manager.py runserver 0.0.0.0:8000<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">#statistic by mimic-nepstats.py<br>python \/honeydrive\/dionaea-script\/mimic-nepstats.py<br>refer<br>https:\/\/bruteforce.gr\/some-dionaea-statistics.html<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># manage by sqllite web<br>http:\/\/localhost\/phpliteadmin\/phpliteadmin.php<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">#readlogsqltree(only support python3)<br>to display attacks from the previous day. The script queries the logsql sqlite database for attacks, and prints out all related information for every attack.<br>This tool provides information about the exploited vulnerability, the time, the attacker, information about the shellcode, and the file offered for download (if any).<br>ex:<br>python3 \/opt\/dionaea\/bin\/readlogsqltree -t $(date &#8216;+%s&#8217;)-24*3600 \/opt\/dionaea\/var\/dionaea\/logsql.sqlite<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>refer<br>https:\/\/bruteforce.gr\/starting-with-dionaea-malware-honeypot.html<br>https:\/\/bruteforce.gr\/some-dionaea-statistics.html<br>https:\/\/bruteforce.gr\/visualizing-dionaeas-results-with-dionaeafr.html<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>honeypot\u5f8c\u7e8c\u8a2d\u5b9a<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">###password configuration<br>$ passwd honeydrive<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">###time configuration<br># choose honeypot time zone<br><code>$ sudo tzselect<\/code><br># replace time zone file<br><code>$ sudo cp \/usr\/share\/zoneinfo\/Aisa\/Taipei \/etc\/localtime<\/code><br># time update<br><code>$ sudo ntpdate time.stdtime.gov.tw<\/code><br># time update by crontab<br><code>$ sudo crontab -e<\/code><br><code>@daily \/usr\/sbin\/ntpdate time.stdtime.gov.tw > \/dev\/null<\/code><br># write time value to BIOS<br><code>$ sudo hwclock -w<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">###iptable configuration<br>ex:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>iptables -P INPUT DROP\niptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT\niptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 135 -j ACCEPT\niptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 137 -j ACCEPT\niptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 445 -j ACCEPT\niptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT\niptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 1433 -j ACCEPT\niptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">###network configuration<br>ex:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$sudo vi \/etc\/network\/interfaces\nauto lo\niface lo inet loopback\n\nauto eth0\niface eth0 inet static\naddress &lt; your ip>\nnetmask &lt; your mask>\ngateway &lt; your gateway>\n\n$ sudo \/etc\/init.d\/networking restart<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>honeypot(\u871c\u7f50)\u7528\u4f86\u5438\u5f15\u653b\u64ca\u8005\u4e26\u8a18\u9304\u653b\u64ca\u65b9\u5f0f\u800c\u5efa\u7acb\u4e4b &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[370],"tags":[],"class_list":["post-419","post","type-post","status-publish","format-standard","hentry","category-blue-team"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/posts\/419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/comments?post=419"}],"version-history":[{"count":1,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/posts\/419\/revisions"}],"predecessor-version":[{"id":2419,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/posts\/419\/revisions\/2419"}],"wp:attachment":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/media?parent=419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/categories?post=419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/tags?post=419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}