140 likes | 341 Views
Linux Worm Forensics. William Stearns wstearns@pobox.com. What are we studying?. Worms – viruses on autopilot Specific techniques for Linux worms. Typical Worm effects (-). Break in via already published exploit Open backdoor, lower defenses Fix original vulnerability
E N D
Linux Worm Forensics William Stearns wstearns@pobox.com
What are we studying? • Worms – viruses on autopilot • Specific techniques for Linux worms
Typical Worm effects (-) • Break in via already published exploit • Open backdoor, lower defenses • Fix original vulnerability • Run attack against random IP blocks • Replace system binaries with hacked versions • Cover tracks, kill logging • Adds itself to startup scripts
Detection • Personal attacks • Mailing lists • Sans’ sensors • Log files
Capture • Affected people often willing to mail source tar file • Download from web site • New strains
Program and script analysis (-) • Read • Read text files and scripts • “strings binary_file” • Disassemble
Program and script analysis, 2 • Run • Isolated physical system, UML or VMware • strace • Debugger • Effects • Ethereal, tcpdump • UML diff • Firewall the test system
Write up • Worm actions • Vulnerability used to enter system • Files replaced • Directories used • Programs run • Boot scripts modified • Backdoor(s) installed • Continuous process
Writing a removal tool • Detectlib • Bash based library for detection and removal • Back end is a function library that detect and remove files • Front end is essentially a reformatted write up
Detectlib functions (-) • InitDetectlib • AttackName WormName • AttackMarker [files] • ReplacedFile BadFile PathToOriginal • PathToRunningApps /full/path • PackagesMangled Program Package
Detectlib functions, 2 • AttackFiles FilesAndDirsToBeRemoved • NukedFiles RemovedOrTruncatedFile • AddedLine File RegexForLine • ReplacedLine File BadRegex GoodString • ServicesStopped SysVServiceToRestart • Echo…
Dissemination • Bugtraq • Sans Mailing list • Packetstorm.securify.com
Credits • Chris Brenton at Altenet • Matt Fearnow at Sans • Dave Dittrich at U. Washington
Wrap-up and questions • William Stearns wstearns@pobox.com • http://www.ists.dartmouth.edu • http://www.washington.edu/People/dad • ftp://ftp.stearns.org/pub/wstearns/ • http://www.stearns.org