Tools for attack
I suppose I should start this section with a disclaimer. I'm only providing
links to these tools, as well as including local mirrors for those that allow.
What you do with these is your business, but only use them on authorized hosts
lest you receive a visit from law enforcement or men named Vinni carrying
baseball bats.
Now, all that said, you can learn a lot about your hosts by attacking them.
Also, you can learn a lot about security in general by looking at the existing
tools and learning how they work. There's a few different types of tools,
some are just for information gathering (port scanners), those that attempt
to find security holes and notify you, and downright exploits that will
try to use a hole in the security of a host to gain access or more privilges.
Vulnerability analysis
Host Analysis
These tools will scan your system for security problems
such as world writable directories and file permissions.
There are also usually checks related to SUID files.
Remote Analysis and Port Scanners
These tools will scan a remote host (or localhost) for
network vulnerabilities (IE, services vulnerable to
attack from outside) and report back to you. Nmap,
hping and Firewalk are a little different in that they
aren't as much for vulnerability scanning as for gaining
information.
Password Checkers
Passwords are key to the security of a system. Good
passwords are key to good security. These tools will
test the security of your passwords, attempting to
guess the passwords of your users.
Buffer Overflows
Buffer overflows are the most common security problems. A bug
in the code of a program causes code to be executed that is
not part of the original code (like /bin/sh).
Papers about Writing Buffer Overflows
Common Buffer Overflow Exploits
Buffer Overflow Protection
Broken Trust
"Broken trust" type attacks are really two techniques used
together. An untrusted host impersonates a trusted host, then
exploits the gained trust, ususally to make the untrusted host
into a trusted one.
Trojans and Rootkits
Oftentimes, after an intruder has root access on a host, they
install a set of trojaned binaries to make it easier to
regain access as root to your host and stay hidden.
Attack Log
- How Mitnick hacked Tsutomu Shimomura with an IP sequence attack - (local copy)
Attack Demonstrations
- Nmap scans: connect() and stealth
- Abacus portsentry reaction to scans
- Tripwire demo: siggen on a file, change, diff siggen
- Nessus demo, maybe SARA
- Buffer overflow attacks, defend with kernel patch
and stackguard