Changeset 1425
- Timestamp:
- 10/27/07 13:09:48 (10 months ago)
- Files:
-
- honeytrap/trunk/ChangeLog (modified) (2 diffs)
- honeytrap/trunk/INSTALL (modified) (1 diff)
- honeytrap/trunk/README (modified) (1 diff)
- honeytrap/trunk/configure.in (modified) (22 diffs)
- honeytrap/trunk/doc/honeytrap.8 (modified) (4 diffs)
- honeytrap/trunk/etc/honeytrap.conf.dist (modified) (6 diffs)
- honeytrap/trunk/etc/ports.conf.dist (modified) (1 diff)
- honeytrap/trunk/etc/responses/21000_tcp (added)
- honeytrap/trunk/etc/responses/5060_tcp (added)
- honeytrap/trunk/src/modules/Makefile.am (modified) (1 diff)
- honeytrap/trunk/src/modules/htm_cspm/Makefile.am (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeytrap/trunk/ChangeLog
r1409 r1425 1 1 Version 1.0.0 2 2 - Improved configure script 3 - Basic http download wrapper plugin added3 - New plugin: Basic http download wrapper 4 4 - VNC plugin redesigned to generate virtual attacks 5 5 - Safe signal delivery and handling using per-process pipes … … 16 16 - Plugins can be prioritized 17 17 - x86 CPU emulation module for generic shellcode analysis 18 based on libemu by Markus and Paul 18 based on libemu by Markus and Paul (unstable) 19 19 - PostgreSQL module for commits into mwcollect database 20 20 - SHA512 hash support honeytrap/trunk/INSTALL
r1249 r1425 9 9 10 10 The `configure' shell script must be told which connection monitor 11 should be used byhoneytrap to monitor network interfaces for incoming11 to use in honeytrap to monitor network interfaces for incoming 12 12 connection requests. Currently the following options are possible: 13 13 14 --with- nfq-monmonitoring via libnetfilter_queue15 (Linux only, recommended)16 17 --with- ipq-monmonitoring via netfilter/iptables ip_queue18 (Linux only)19 20 --with- pcap-monmonitoring with a PCAP-based sniffer14 --with-stream-mon=nfq monitoring via libnetfilter_queue 15 (Linux only, recommended) 16 17 --with-stream-mon=ipq monitoring via netfilter/iptables ip_queue 18 (Linux only) 19 20 --with-stream-mon=pcap monitoring with a PCAP-based sniffer 21 21 22 22 To build additional plugins use the --with-[pluginname] options. 23 `configure --help' gives a full list of available options. 24 25 After the configure step a `make' compiles the code. Finally `make 26 install' puts all needed files in the correct places. 23 27 24 28 Please refer to the generic installation instructions below for further honeytrap/trunk/README
r1270 r1425 24 24 INSTALLATION 25 25 26 Installation of honeytrap should be pretty straight forward. Just27 do a './configure --with-<type>-mon && make &&make install'26 Installation of honeytrap is pretty straight forward. Just do a 27 './configure --with-stream-mon=<type> && make && make install' 28 28 where '<type>' is the connection monitor type of your choice. 29 29 Please refer to the INSTALL file and to the output of './config- honeytrap/trunk/configure.in
r1409 r1425 68 68 69 69 bold () { 70 text=`echo $seo"$1" | sed -e "s/%B/${term_bold}/g" -e "s/%b/${term_norm}/g" 2>/dev/null`71 echo $seo"$text"70 text=`echo -e "$1" | sed -e "s/%B/${term_bold}/g" -e "s/%b/${term_norm}/g" 2>/dev/null` 71 echo "$text" 72 72 } 73 73 … … 96 96 enable_profile="X" 97 97 ], enable_profile=" ") 98 AC_ARG_ENABLE(devmodules, 99 [ --enable-devmodules enable unstable modules (not recommended for production setups)], 100 [ if test -n "$GCC"; then 101 CFLAGS="-O0 -DDEBUG -g" 102 else 103 CFLAGS="$CFLAGS -DDEBUG" 104 fi 105 enable_devmodules="X" 106 ], enable_devmodules=" ") 107 98 108 99 109 #AC_CANONICAL_HOST … … 293 303 bold " %BError%b - libpcap headers not found. Install them or use the following options:" 294 304 echo 295 bold " %B--with-libpcap-includes=%b [location of libpcap header files]"305 bold " %B--with-libpcap-includes=%b\133location of libpcap header files\135" 296 306 echo 297 307 exit 1 … … 307 317 bold " %BError%b - libpcap library not found. Install it or use the following options:" 308 318 echo 309 bold " %B--with-libpcap-librar y=%b[location of libpcap shared library files]"319 bold " %B--with-libpcap-libraries=%b\133location of libpcap shared library files\135" 310 320 echo 311 321 exit 1 … … 333 343 bold " %BError%b - libnetfilter_queue headers not found. Install them or use the following options:" 334 344 echo 335 bold " %B--with-libnfq-includes=%b [location of libnetfilter_queue header files]"345 bold " %B--with-libnfq-includes=%b\133location of libnetfilter_queue header files\135" 336 346 echo 337 347 exit … … 347 357 bold " %BError%b - libnetfilter_queue library not found. Install it or use the following options:" 348 358 echo 349 bold " %B--with-libnfq-librar y=%b[location of libnetfilter_queue shared library files]"359 bold " %B--with-libnfq-libraries=%b\133location of libnetfilter_queue shared library files\135" 350 360 echo 351 361 exit … … 372 382 bold " %BError%b - libipq headers not found. Install them or use the following options:" 373 383 echo 374 bold " %B--with-libipq-includes=%b [location of libipq header files]"384 bold " %B--with-libipq-includes=%b\133location of libipq header files\135" 375 385 echo 376 386 exit … … 386 396 bold " %BError%b - libipq library not found. Install it or use the following options:" 387 397 echo 388 bold " %B--with-libipq-librar y=%[blocation of libipq shared library files]"398 bold " %B--with-libipq-libraries=%b\133location of libipq shared library files\135" 389 399 echo 390 400 exit … … 448 458 bold " %BError%b - libclamav headers not found. Install them or use the following options:" 449 459 echo 450 bold " %B--with-libclamav-includes=%b [location of libclamav header files]"460 bold " %B--with-libclamav-includes=%b\133location of libclamav header filesi\135" 451 461 echo 452 462 exit … … 462 472 bold " %BError%b - libclamav library not found. Install it or use the following options:" 463 473 echo 464 bold " %B--with-libclamav-librar y=%b[location of libclamav shared library files]"474 bold " %B--with-libclamav-libraries=%b\133location of libclamav shared library files\135" 465 475 echo 466 476 exit … … 475 485 AM_CONDITIONAL(BUILD_CPUEMU_PLUGIN, test x$with_cpuemu = xyes) 476 486 if test "$with_cpuemu" = "yes"; then 487 if test "$enable_devmodules" != "X"; then 488 echo 489 echo " The cpuEmu plugin is still unstable and should not be used in production setups." 490 bold " Use %B--enable-devmodules%b to build it anyway." 491 echo 492 exit 493 fi 494 477 495 with_cpuemu="X" 478 496 AC_ARG_WITH(libemu_includes, … … 490 508 AC_CHECK_HEADER(emu/emu.h,, HEMU="no") 491 509 if test "$HEMU" = "no"; then 510 echo 492 511 bold " %BError%b - libemu headers not found. Install them or use the following options:" 493 512 echo 494 bold " %B--with-libemu-includes=%b [location of libemu header files]"513 bold " %B--with-libemu-includes=%b\133location of libemu header files\135" 495 514 echo 496 515 exit … … 503 522 AC_CHECK_LIB(emu, emu_getpc_check,, LEMU="no") 504 523 if test "$LEMU" = "no"; then 524 echo 505 525 bold " %BError%b - libemu library not found. Install it or use the following options:" 506 526 echo 507 bold " %B--with-libemu-librar y=%b[location of libemu shared library files]"527 bold " %B--with-libemu-libraries=%b\133location of libemu shared library files\135" 508 528 echo 509 529 exit … … 520 540 AM_CONDITIONAL(BUILD_SUBMIT_MWSERV_PLUGIN, test x$with_submit_mwserv = xyes) 521 541 if test "$with_submit_mwserv" = "yes"; then 542 if test "$enable_devmodules" != "X"; then 543 echo 544 echo " The submitMWserv plugin is still unstable and should not be used in production setups." 545 bold " Use %B--enable-devmodules%b to build it anyway." 546 echo 547 exit 548 fi 549 522 550 with_submit_mwserv="X" 523 551 … … 539 567 AC_CHECK_HEADER(curl.h,, HCURL="no") 540 568 if test "$HCURL" = "no"; then 569 echo 541 570 bold " %BError%b - libcurl headers not found. Install them or use the following options:" 542 571 echo 543 bold " %B--with-libcurl-includes=%b [location of libcurl header files]"572 bold " %B--with-libcurl-includes=%b\133location of libcurl header files\135" 544 573 echo 545 574 exit 546 575 fi 547 576 577 if test "$with_libcurl_libraries" != "no"; then 578 LDFLAGS="${LDFLAGS} -L${with_libcurl_libraries}" 579 fi 548 580 LCURL="yes" 549 581 AC_CHECK_LIB(curl, curl_version, LCURL="yes", LCURL="no") 550 582 if test "$LCURL" = "no"; then 583 echo 551 584 bold " %BError%b - libcurl library not found. Install it or use the following options:" 552 585 echo 553 bold " %B--with-libcurl-librar y=%b[location of libcurl shared library files]"586 bold " %B--with-libcurl-libraries=%b\133location of libcurl shared library files\135" 554 587 echo 555 588 exit 556 589 fi 557 558 if test "x$libcurl" = xno ; then559 AC_MSG_CHECKING([checking for curl with SSL])560 LIBS="$LIBS -lcurl -L/usr/local/ssl/lib -lssl -lcrypto"561 AC_TRY_LINK([#include <curl/curl.h>], [curl_version();], libcurl=yes, libcurl=no)562 if test "x$libcurl" = xno ; then563 AC_MSG_RESULT(no)564 AC_MSG_ERROR([libcurl required. Go to http://curl.haxx.se/ to download and then install it first])565 else566 AC_MSG_RESULT(yes)567 fi568 fi569 590 else 570 591 with_submit_mwserv=" " … … 577 598 AM_CONDITIONAL(BUILD_CSPM_PLUGIN, test x$with_cspm = xyes) 578 599 if test "$with_cspm" = "yes"; then 600 if test "$enable_devmodules" != "X"; then 601 echo 602 echo " The CSPM plugin is still unstable and should not be used in production setups." 603 bold " Use %B--enable-devmodules%b to build it anyway." 604 echo 605 exit 606 fi 607 608 with_cspm="X" 609 579 610 AC_ARG_WITH(libpcre_includes, 580 611 [ --with-libpcre-includes=DIR libpcre include directory], … … 594 625 bold " %BError%b - libpcre headers not found. Install them or use the following options:" 595 626 echo 596 bold " %B--with-libpcre-includes=%b [location of libpcre header files]"627 bold " %B--with-libpcre-includes=%b\133location of libpcre header files\135" 597 628 echo 598 629 exit … … 608 639 bold " %BError%b - libpcre library not found. Install it or use the following options:" 609 640 echo 610 bold " %B--with-libpcre-librar y=%b[location of libpcre shared library files]"611 echo 612 exit 613 fi 614 with_cspm="X" 641 bold " %B--with-libpcre-libraries=%b\133location of libpcre shared library files\135" 642 echo 643 exit 644 fi 645 615 646 else 616 647 with_cspm=" " … … 641 672 bold " %BError%b - libpq headers not found. Install them or use the following options:" 642 673 echo 643 bold " %B--with-libpq-includes=%b [location of libpq header files]"674 bold " %B--with-libpq-includes=%b\133location of libpq header files\135" 644 675 echo 645 676 exit … … 655 686 bold " %BError%b - libpq library not found. Install it or use the following options:" 656 687 echo 657 bold " %B--with-libpq-librar y=%b[location of libpq shared library files]"688 bold " %B--with-libpq-libraries=%b\133location of libpq shared library files\135" 658 689 echo 659 690 exit … … 754 785 bold " (%B$enable_debug%b) Debugging" 755 786 bold " (%B$enable_profile%b) Profiling" 787 bold " (%B$enable_devmodules%b) Unstable Modules" 756 788 bold " (%B$with_efence%b) Electric Fence" 757 789 echo … … 765 797 bold " (%B$with_clamav%b) ClamAV" 766 798 bold " (%B$with_cpuemu%b) cpuEmu" 799 bold " (%B$with_cspm%b) CSPM" 767 800 bold " (%B$with_postgres%b) PostgeSQL" 768 801 bold " (%B$with_spamsum%b) SpamSum" 769 bold " (%B$with_cspm%b) CSPM"770 802 bold " (%B$with_submit_mwserv%b) submitMwserv" honeytrap/trunk/doc/honeytrap.8
r1081 r1425 28 28 .SH NAME 29 29 .B honeytrap 30 \- trap attacks against tcpservices30 \- trap attacks against network services 31 31 .SH SYNOPSIS 32 32 .B honeytrap … … 71 71 .SH DESCRIPTION 72 72 .I honeytrap 73 is a network security tool written to observe attacks against TCPservices. As a low-interactive honeypot, it collects information regarding known or unknown network-based attacks. It starts server processes dynamically at the time of incoming connection requests. This generic behavior makes it possible to respond to most network-based attacks. Observed data can be processed with plugins for automatic analysis.73 is a network security tool written to observe attacks against network services. As a low-interactive honeypot, it collects information regarding known or unknown network-based attacks. It starts server processes dynamically at the time of incoming connection requests. This generic behavior makes it possible to respond to most network-based attacks. Observed data can be processed with plugins for automatic analysis. 74 74 .LP 75 75 Data capture is basically done by the core system. The master process uses a connection monitor to catch incoming requests. Currently, connection monitoring can be performed via a PCAP based sniffer or by hooking the ip_queue API, a userland interface to netfilter/iptables on Linux systems. The appropriate technique has to be built in during compile time. 76 76 .LP 77 Incoming connections are processed in one of the following modi: normal, ignore, proxy and mirror. The specific bevavior for a connection can be configured per TCPport. If no explicit configuration is given, the default mode applies. It is possible to setup77 Incoming connections are processed in one of the following modi: normal, ignore, proxy and mirror. The specific bevavior for a connection can be configured per tcp or udp port. If no explicit configuration is given, the default mode applies. It is possible to setup 78 78 .I honeytrap 79 79 as a meta-honeypot, forwarding some connections to different honeypot systems, handle some attacks with own routines or even route connections to different honeypots. … … 177 177 To recognize rejected connections, 178 178 .I honeytrap 179 uses a berkeley packet filter (bpf) to sniff TCP reset packets sent to a remote host. The filter can be restricted by adding a bpf179 uses a berkeley packet filter (bpf) to catch connection requests. The filter can be restricted by adding a bpf 180 180 .I expression. 181 181 This only has an effect when using the pcap connection monitor. … … 205 205 As a honeypot, 206 206 .I honeytrap 207 is exposed to attacks that might compromise the software itself. Running it in toa hardened and secured environment is a good idea. Linking against a stack protection library might also improve security. The configure script supports the electric fence malloc debugger. Use it.207 is exposed to attacks that might compromise the software itself. Running it inside a hardened and secured environment is a good idea. Linking against a stack protection library might also improve security. The configure script supports the electric fence malloc debugger. Use it. 208 208 .SH SEE ALSO 209 209 .BR bpf (4), 210 210 .BR iptables (8), 211 211 .BR pcap (3), 212 .BR udp(7). 212 213 .BR tcp (7). 213 214 .SH AUTHOR honeytrap/trunk/etc/honeytrap.conf.dist
r1286 r1425 14 14 response_dir = "/opt/honeytrap/etc/honeytrap/responses" 15 15 16 /* run in mirror mode - mirror connections back to the initiator 17 * use with caution! */ 18 //mirror = "on" 16 /* replace rfc1918 ip addresses with attacking ip address */ 17 replace_private_ips = "no" 18 19 /* default port mode -- valid values are "ignore", "normal" and "mirror" 20 portconf_default = "normal" 19 21 20 22 /* put network interface into promiscuous mode … … 48 50 plugin-vncDownload = "" 49 51 52 50 53 /* store attacks on disk */ 51 54 plugin-SaveFile = { … … 53 56 downloads_dir = "/opt/honeytrap/downloads" 54 57 } 58 55 59 56 60 /* scan downloaded samples with ClamAV engine */ … … 60 64 } 61 65 66 62 67 /* calculate locality sensitive hashes */ 63 68 plugin-SpamSum = { … … 65 70 spamsum_sigfile = "/opt/honeytrap/spamsum.sigs" 66 71 } 72 67 73 68 74 /* store attacks in PostgeSQL database */ … … 76 82 } 77 83 */ 84 85 86 /* invoke wget to download files via http */ 87 /* 88 plugin-httpDownload = { 89 http_program = "/usr/bin/wget" 90 // http_options = "-nv" 91 http_options = "-q" 92 download_dir = "/opt/honeytrap/downloads/" 93 } 94 */ 95 78 96 79 97 honeytrap/trunk/etc/ports.conf.dist
r1270 r1425 3 3 * should be included in main configuration file 4 4 * (c) Tillmann Werner <tillmann.werner@gmx.de> 5 */5 */ 6 6 7 7 portconf = { honeytrap/trunk/src/modules/Makefile.am
r1387 r1425 85 85 endif 86 86 87 87 88 install-exec-am: 88 $(mkinstalldirs) $( DESTDIR)/$(sysconfdir)/honeytrap/plugins89 $(mkinstalldirs) $(libdir) 89 90 for module in `find .libs -name htm_*.so`; do \ 90 [ -h $$module ] || $(INSTALL_DATA) "$$module" $( DESTDIR)/$(sysconfdir)/honeytrap/plugins/; \91 [ -h $$module ] || $(INSTALL_DATA) "$$module" $(libdir) ; \ 91 92 done 92 for module in `find . -name htm_*.*a`; do \93 rm -f $(DESTDIR)/$(sysconfdir)/honeytrap/plugins/`basename "$$module"` ; \94 donehoneytrap/trunk/src/modules/htm_cspm/Makefile.am
r1388 r1425 26 26 htm_cspm_la_LDFLAGS = -module -no-undefined -avoid-version 27 27 28 28 29 install-exec-am: 29 $(mkinstalldirs) $( DESTDIR)/$(sysconfdir)/honeytrap/plugins30 $(mkinstalldirs) $(libdir) 30 31 for module in `find .libs -name htm_*.so`; do \ 31 [ -h $$module ] || $(INSTALL_DATA) "$$module" $( DESTDIR)/$(sysconfdir)/honeytrap/plugins/; \32 [ -h $$module ] || $(INSTALL_DATA) "$$module" $(libdir) ; \ 32 33 done 33 for module in `find . -name htm_*.*a`; do \34 rm -f $(DESTDIR)/$(sysconfdir)/honeytrap/plugins/`basename "$$module"` ; \35 done
