Anton Chuvakin on Honeypots

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites

    Anton Chuvakin on Honeypots - Presentation Transcript

    1. Implementing, Deploying and Maintaining the Honeypot v.2.0 Created May 2002 Updated October 2003 Anton Chuvakin, Ph.D., GCIA, GCIH Senior Security Analyst
    2. Summary
      • What do you want?
        • High to low level view of honeypots
      • Honeypots overview
        • Detailed need and available technology assessment
      • Building the honeypot
        • UNIX/Linux research honeypot
    3. Miscellaneous Comments
      • Audience : everybody related to information, security, system network administrators, technical management
      • Prerequisites : basics of TCP/IP, network and host security, UNIX (“I am not explaining what is a firewall!”)
    4. “ Galaxy” View
      • What do you want?
      • Goals of your security program
        • Existing company policies
        • Available resources
        • Threat landscape
      • What is a honeypot?
      • What honeypots are good for ?
      • What can you get away with as a result?
    5. “ Solar System” View
      • Three main reason to have a honeypot
      • Catch vs study vs defend
      • Catch
        • Entrapment, dealing with LE, etc
      • Study
        • Why do you need it? Do you, really? ROI? Benefits?
      • Defend
        • Maybe look elsewhere? Good IDS,etc
    6. Sky-high View
      • Research vs Production Honeypots
        • Honeynets – of course
      • Low Interaction vs High Interaction
        • Maybe medium-interaction is for you
      • Passive and active honeypot
        • Honeypots attack!
      • Dangers and illusions
        • Your skills vs attackers – battleground “high interaction honeypot”
    7. Mid-level View: Honeypot Policy I
      • Honeypot security policy
      • Network placement
        • Production vs dedicated link
        • DMZ vs internal
      • Hardened box vs softened box
        • As tight as you can make it – not vulnerable to the best of your knowledge
        • Soft – potentially vulnerable
        • Known vulnerable
        • Known commonly exploitable
    8. Mid-level View: Honeypot Policy II
      • Services to offer
        • Network daemons and local applications
        • Web services? Databases? Proxies?
        • Simulated hacked environment?
      • User activity
        • LAN inbound/outbound connections
        • Web surfing
        • Email / mailing lists
        • IRC
        • User stored data
    9. Mid-level View: Honeypot Policy III
      • Inbound connections
        • All remote allowed
        • Limited by service / source location
        • Wireless
      • Outbound connections
        • Unlimited – a bad idea!
        • Limited by number, location, protocol, service
        • Attack dropping
        • Packet mangling
        • None
    10. Low-Mid Level: Fitting In
      • Everything else in security should be cool!
      • Honeypot placement
        • Dedicated connection
        • External net
        • Screened subnet (DMZ)
        • Dedicated subnet
        • Internal LAN
        • Honeypot farm
      • No conflicts with current security policy? Sure?
    11. Low Level: Platform and Topology
      • Data Capture and Data Control – overview
      • Gen I vs Gen II honeynets – overview
      • Typical Gen I: firewall, IDS, bash trojan
      • Typical Gen II: bridge (“stealth” firewall), inline IDS, kernel trojan
      • OS platform choices
    12. Low Level: Software Controls
      • Data Capture and Data Control
      • Data Control – prevent attack escape
        • Firewall / router
        • Bandwidth Throttle
        • IPS
      • Data Capture – collect evidence
        • IDS
        • Tcpdump
        • Flows
      • Data Collection – centralized reporting
    13. Low Level: Other Resources
      • Advanced security skills needed
      • Time requirements
        • Honeypots HAVE TO be maintained!
        • Data analysis is time consuming
        • Incident response
        • Captured tool analysis
      • Legal support
    14. Case Study: UNIX Research Honeypot
      • Honeypot platform: UNIX
        • Transparency
        • Flexibility
        • “ Securability”
        • Familiarity
      • Victim platform: UNIX
        • Commonly deployed on servers – often attacked
      • Options: Gen I and Gen II setups
      • Options: normal and paranoid setup
    15.  
    16. Setup: Hardware (GI and GII)
      • Intel-based machines - firewall/bridge, IDS, victim
        • Performance machine: IDS
        • Old junk: firewall
        • Whatever is left: victim
      • Have just one or two machine? Virtual honeynets!
        • Risky business
      • Linux, Solaris, Free/OpenBSD
      • Windows victim – fun too! 
    17. Wipe the pots!
      • Prepare the hardware - “sterilize”
        • Helps lots with forensics
      • Build the network
        • Defence in-depth, strict firewall rules
      • Connect all to the management LAN
        • But not to outside
      • Install and harden the chosen OS for firewall, IDS
      • Deploy victim as decided
    18. Software I : Firewall
      • Linux iptables script available for GI and GII setups
        • http://www.honeynet.org/papers/honeynet/
      • Free/OpenBSD ipf/pf developed for GI
      • CheckPoint FW1 (GI)
      • Control rules:
        • Counting outbound connections per protocol (GI, II)
        • Passing packets to snort-inline (GII)
        • Block spoofing (GI, II)
        • Block connections to the firewall (GI)
      • Rate limiting (Linux tc and BSD patched pf )
    19. Software II: IDS
      • Snort (GI, II)
        • Ruleset developed: log all to binary dumps and SQL database, alert to syslog
        • log ip any any <> any any (msg: &quot;Snort Unmatched&quot;; session: printable;)
      • Snort-inline (GII)
        • More Data Control than Capture
      • TCPdump (GI,II)
        • Just a tcpdump –i eth1 –s 1600 –w tcpdump_Oct12.dump
        • Serves as backup data capture
    20. Software III: Other
      • NTP sync between firewall/bridge and IDS
        • UDP 123 with stringent access controls
      • Remote logging from firewall to IDS
      • Alerting scripts available ( swatch )
        • http://www.honeynet.org/papers/honeynet/
      • Logsentry is good for daily reporting
      • ACID/BASE for visual SQL database analysis
    21. Host Hardening: Soft/Regular
      • Minimized UNIX with few network services
      • SSH RSA access only (no passwords)
        • With stringent access controls and TCP wrappers
      • HTTP SSL for console
        • Access controls
      • Host firewalls (only specific management hosts)
      • AIDE/Tripwire
      • Covert remote and automated shutdown (email)
    22. Host Hardening: Paranoid I
      • Do you believe in any of this?
        • Stealth sniffer attacks (via libpcap, tcpdump bugs)
          • Bugs were discovered
        • Remote syslog bugs
        • iptables/pf/ipf/CheckPoint bugs
          • Are those real? Can properly configured firewall protect you?
        • TCP/IP stack bugs
          • Kernel remote exploits. Vile rumors or …?
        • Network driver bugs and level II evil stuff
      • Well, if you do…
    23. Host Hardening: Paranoid II
      • Chroot non-root syslog
        • Remote exploits will yield nothing ( syslog-ng )
      • Kernel hardening (MAC: LIDS, BSD call tracing)
        • E.g. bind the sniffer to only write a single file
      • IP-less bridge (kernel with no networking)
      • Samhain – covert HIDS
        • “ Invisible” steg-protected tripwire clone with remote reporting
      • Automated response scripts
        • Shutdown if something happens
    24. Basic Victim Setup
      • Default install of:
        • RedHat Linux 7.x, 8, 9
        • Solaris Intel/SPARC
        • Free/OpenBSD
      • Network services
        • www, ftp, named, pop3, telnet, ssh, sendmail, etc
      • User accounts
      • “ Tripwire” and AIDE
    25. Covert Victim Monitoring
      • Simple
        • Bash UDP trojan
      • Medium
        • LKM local keylogger (Phrack)
        • Modified script
      • Medium-high
        • Sebek (LKM, UDP, encrypted, spoofed log transfer)
      • High
        • Sebek II (custom covert LKM with non-IP tranfer)
    26. System Testing
      • Outbound/inbound connectivity testing
      • Flood testing
        • “ Fail open” or “fail close”?
        • Both inbound and outbound floods
      • Test data capture (snort, tcpdump)
      • Test covert monitoring (generation, capture)
      • Attack drop testing (GII)
      • Test automated response
    27. Honeypot Maintenance Brief
      • Watch ACID/BASE console
      • Look at daily reports ( logsentry )
        • Watch for floods, backdoors, exploits and compromises
      • Update IDS signature sets
      • Administer victim machine
        • Selective patching might be in order
        • Clean up management traces on victim (and zero disks!)
    28. Data Analysis Brief
      • Compromise :
        • Honeynet Project compromise write-up v.0.2
          • Provides a template for compromise analysis write-up
        • Study hacker tools
          • Rootkits, scanners, backdoors, exploits, IRC boots
        • Analyze IRC conversations
        • Investigate sites used by hackers
          • Tool storage sites are of great interest
        • Tag hackers
    29. Some Lessons and Cases
      • DoS attacks
      • Massive scans
      • Targeted attacks
      • IRC wars
      • Unusual rootkits
      • Covert backdoors
      • New exploits
      • Worm spreading
    30. Conclusion
      • “ To learn the tools, tactics, and motives of the blackhat community, and share the lessons learned.”
      • Honeypots can successfully achieve that!
      • Also:
      • Great IR and IDS training
      • First hand knowledge of new attacks
    31. Thanks for Viewing the Presentation
      • Anton Chuvakin, Ph.D., GCIA, GCIH, GCFA
      • http://www.chuvakin.org
      • Author of “Security Warrior” (O’Reilly) – http://www.securitywarrior.org
      • Book on logs is coming soon!
      • See http://www.info-secure.org for my papers, books, reviews and other security resources related to logs

    + Anton ChuvakinAnton Chuvakin, 3 years ago

    custom

    4502 views, 2 favs, 2 embeds more stats

    My old (circa 2002) presentation about my experienc more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 4502
      • 4410 on SlideShare
      • 92 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 0
    Most viewed embeds
    • 91 views on http://www.secguru.com
    • 1 views on file://

    more

    All embeds
    • 91 views on http://www.secguru.com
    • 1 views on file://

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories