Aggressive Network Self-Defense
Not being a big fan of most fiction (I tend to prefer history), it's hard to say definitively good or bad things about the quality of the writing. What I can say is that it's infinitely less irritating, and far more realistic, than Neal Stephenson's Cryptonomicon or Gibson's Neuromancer. No over-the-top smearing of adjectives to describe the mundane, and no unrealistic sequences of events. Then again, there's no character development and no real story progression, so it's not great fiction.
As a series of hacker vignettes, the book works just fine, and very well for the purposes at hand. Basically, what the authors want you to get from the book is two-fold: First, they want you to debate the issues around "strike back" attack methodologies. Several of the authors are open advocates of what are legal grey areas and open moral questions in the field of network security. Secondly, they want you to see how it's done, what you do when you actually use a tool to achieve a goal. Most books that do this, like Hacking Exposed, cover far more tools, but they usually do so without showing you each tool's use in a real-world scenario.
I won't bore you with a lengthy, detailed overview of the first part of the book. Like I said, it's a series of part fiction, part tutorial series of short stories. In them, you'll see tools like Metasploit, virus creation, some nmap, sniffers, and keystroke loggers, all in action, being used as an operator would use them, and achieving real goals. This is more valuable than a basic manual, and the stories themselves act as a nice setting. While not great fiction writers, the authors are decent enough at the job, and they write the technical material clearly.
The second part of the book is interesting. It makes up about a fifth of the book in volume, but a lot more in technical weight. The book bills this section as "The technologies and concepts behind network strike-back," and that's an accurate summary. It's a series of four unique perspectives and technical chapters that complement the rest of the book quite well.
The first introduces ADAM, the "Active Defense Algorithm and Model," which develops a methodology for network administrators to actively defend their networks against attacks. It's quite interesting, and brings together a number of risk models in an uncommon take. The authors are academic researchers from the University of Idaho, so it's a lot more academic than the previous material in Aggressive Network Self-Defense, but it formalizes a lot of the thinking that was present in the writing of the stories and techniques.
The second is Tim Mullen's classic "Defending your right to defend." This is the original position paper shared by Mullen with the information security community in 2002 or so. Here, Mullen makes a compelling case for actually striking back at worm infected hosts. After all, the position holds, someone should do something about them to help clean up the Internet. While it's a position I disagreed with at the time and still do, Mullen's writing is articulate and an important read. It really helps you understand a lot of the thinking that went into the book itself.
Dan Kaminsky wrote the next chapter, "MD5 to be considered harmful someday." Largely considered to be a follow-on to Joux and Wang's one-way hash function research, what it shows is how practical such an attack can be. Kaminsky never fails to come up with interesting ideas he puts into practice, and he adds another level of depth to this book.
Finally, Aggressive Network Self-Defense ends with an interesting paper, "When the tables turn: Passive strike-back." Like any good paper, it has a clear and thoughtful motivation, and really demonstrates the principles at play, namely building network resources that don't simply lure the attacker in, they trip her up. There are so many ways to do this, the authors show us, and ultimately it's almost fun. A good way to end the book.
An over-arching concern with the book that I have is the question of ethics. Mullen, in the foreword, states that he hopes the book stirs a debate about the ethics of the actions in the book. However, the book itself falls short in this area. Instead, sometimes the characters get busted, and sometimes they don't, but just because they didn't get caught doesn't mean some ethical lines weren't crossed. All too often the authors leave the ethical debate up in the air. While I prefer this to overt preaching or questions, the style leaves me wondering if this goal was achieved.
So, where do I stand on Aggressive Network Self-Defense? In the end, I like it, more so than a book like Hacking Exposed or other "hacking how-to" types. The style of presentation doesn't lend itself all that well to exploring a very wide number of tools, but it does give you a deeper context to see how they assemble into something larger. For many people I expect it will be a page turner, and I think the format has some utility, as shown here.
You can purchase Aggressive Network Self-Defense from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
Smith and Wesson.
when you try to login and your network tells you
"I know Kung Fu"
Do not try to read the dupe, thats impossible. Instead, only try to realize the truth
What truth?
There is no dupe
...and it's great there's a book covering it. There are so very many security related tools available today, and the real problem nowadays is that few of them integrate in any usable manner. NIDS should integrate with each other and generate more comprehensive, multiperspective data about suspicious looking traffic. Networks should autoadapt to block malicious traffic.
I, for one, welcome our new aggressive self-defending network overlords!
The Army reading list
The only three programs you need to know.
While his proposed recommendations for network defense appear viable, nothing is more effective for protecting your computer than sucker-punching a random script-kiddy in the groin at a local LAN party.
...he's got some nifty visualizations of the MD5 attacks on his site; scroll down a page or so to see this and other images...
The Army reading list
Timed out...
Reason for Timed out: Login not entered within a picosecond
AUTODESTRUCT IN PROGRESS...
5
4
3
BOOM...
May
Pluralization does not need an apostrophe.
Yep. Good job. *pat* *pat*
One thing that really bothers me are things like this in my logs:
Mar 2 22:42:37 inetd[32684]: refused connection from 210.29.1.3, service sshd (tcp)
Mar 2 22:42:38 inetd[1534]: ssh from 210.29.1.3 exceeded counts/min (limit 1/min)
Mar 2 22:43:09 last message repeated 38 times
Mar 2 22:45:09 last message repeated 114 times
Mar 2 22:55:10 last message repeated 644 times
Mar 2 23:05:10 last message repeated 509 times
I routinely run into foreign systems hitting my server at extraordinary rates. These seem to be bursts here and there, more looking to probe the system than DoS it but sometimes a DoS condition occurrs.
I routinely to an IPWHOIS of these locales and send e-mail to the IP administrators, but some of the foreign ones are unresponsive. So what can you do?
Are there any scripts out there that can automate the process of reporting system probes?
Is there any recourse in taking aggressive counteraction against, for example, the hoards of chinese IPs that routinely probe and attack domestic hosts?
Seems like this only verges on the edge of a how-to for network vigilantism - is there such a work?
Take the 90-Day Challenge! http://rwmurker.bodybyvi.com/
ROFL nice one
Visit My Blog at http://spaces.msn.com/members/chrisharries
7f2c83031b3e693a86e2b0cc25df7ef7
Then again, there's no character development and no real story progression, so it's not great fiction.
Character development is massively overrated in lit. I'm not sure if this refers to how fleshed out a character is or how much he changes during the course of the story but in either case it saddens me to think that some people think this is the point of fiction.
But then I realized that the usage is largely discretionary, and can be used either way. I also realized that whichever variant I went with, I would attract this sort of nonsense. So I picked one and stuck with it.
I also am not asking for money for my services.
Dick.
--grendel drago
Laws do not persuade just because they threaten. --Seneca
Don't you think that Digital Rottweiler would be a great name for an aggresive network security app?
If brevity is the soul of wit, then how does one explain Twitter?
When will the SlashDot crowd realize this kind of jokes aren't funny?
( ) Never!
( ) I laugh because CowboyNeal does.
(.) Breasts!
Oh, and if that was a rethorical question, these are just rethorical answers.
Hey thats kinda like my network...
If someone attacks my network, it attacks them right back. You scaning my network ? then all my machines scans you right back. It also ddoses random webservers just for practice.
Excellent work, editors, fixing the title like that. The "we're a bunch of whores" referrer link is still misspelled, with only one copy of the oh-so-precious letter g.
So close, and yet so far!
--grendel drago
Laws do not persuade just because they threaten. --Seneca
I'm going to implement spamd (the tarpit), that's about as proactive I am at going out of my way on offence with my network. Up till now it's all be defense. What else can I do from a FreeBSD server, or an OpenBSD pf firewall box?
bo
bad_outlook
--
Is this vague enough for you?
I am an author of ADAM (Ch 9) in the book, with Deb Frincke. I would like to point out that more information and resources on the topic of active defense and active response can be found at: http://www.activeresponse.org
Heh, thanks :)
As long as we're discussing the MD5 stuff:
Slashdot
E-Print of the original paper
Vlastimil Kilma's research on the topic
The finally released paper by Xiaoyun Wang, the original discoverer of this attack
Enjoy!
--Dan
What I can say is that it's infinitely less irritating, and far more realistic, than Neal Stephenson's Cryptonomicon or Gibson's Neuromancer.
I always hear these two books mentioned when people talk about computers in science fiction(aside only from 2001:A Space Odessey).
I have yet to read Cryptonomicon, so I cannot comment on that. I have, however, read Neuromancer.
The book is utter crap. The main character is unbelievable, and acts contrary to what his own mind and desires would be. The other characters lack personality and a solid basis for the actions they as well.
The story is mediocre and flaky at best. We're supposed to believe that the characters in the story are working for Armitage, but aren't, but really are. Their reasons for doing as he asks? The reader is left to assume it is because they are completely inept and gullible, and too afraid to turn to any reasonable educated person on the conditions they are in. In other words, the characters don't really think.
Granted, the environment, and the computer culture, and all the cyberpunkness *is* there, but that alone doesn't make a good story. And keep in mind that Blade Runner PRE-DATED this book by 2 years. The marriage of science fiction and computer crime was bound to happen eventually, Gibson is no saint for being arguably the first.
Anyway, I just wanted to propose an alternate view on Neuromancer so no one else gets duped into buying it. When you see geeks talk about it, don't let them sucker you into thinking it's something that you'll enjoy, it creates a world, but then it fails to give a story. There's been better work since.
We meet again! :-)
The Army reading list
Any serious network attack involves a chain of ownwed boxes to attack from. The best response is to take those owned boxes from them.
;). It's not that hard to take network machines but it does hurt to have em' taken back.
... Standards and Practices !
After determining the source of the attack alert the people who have been owned and help em' get their box back, teach em' a little hardening too
PenGun
Do What Now ???
then I consider that a lot of these systems are merely victims themselves. Do I really WANT to take down someone's core router or mail server because they've allowed it to fall into michievious hands?
I suppose with snort, nmap, some very short scripts to do the nasties, you could thump probing systems in an automated fashion. I just haven't felt comfortable doing that lest I pounce on someone who's already a victim.
Cheers,
I worked on the book. Anyone interested in checking out a chapter can go to http://www.syngress.com/catalog/?pid=3190
Actually, plurals of single letters are one of the few cases where using an apostrophe is allowed. Plurals of numerals (e.g. "How many 1's are in this byte?") is the primary other one.
Media that can be recorded and distributed can be recorded and distributed.
-kfg
In order (somewhat):
/. poster)
1. NMAP the offender.
2. NSLookup, Whois, etc. I even go so far as to use GeoIP to get city, state, ISP, etc. Get email addresses to send to.
3. Look for open proxies on the address in the case of SPAM. If so, just drop the search there.
4. Nessus check for potential vulns that might have been exploited by common/known worms. Essentially, find how they were exploited, and if there is no known reason, assume they are malicious.
5. Take necessary actions to blacklist or block the IP on the offending protocol, or in some rare cases, kill the IP altogether. (rarer cases, the subnet)
6. Google. You'd be amazed at what I can do here. I put in the direct IP, I put in email addresses I've collected to find out where the person posts, etc. I get to know the individual, who they are, and further deduce if they are malicious. I used to even go so far as to imiate someone of the opposite sex their age and talk to them on their favorite IM and ask them if they are a h4x0r and can help me "get back at my brother, the bully at school, the girl that stole my boyfriend" etc. (never assume the gender of a
7. Email at a minimum 5 people, including Incident Response (https://forms.us-cert.gov/report/), the offending ISP, any emails off of the website of the IP in question, etc. Half the emails I CC just so that the individuals take the email seriously. Occasionally these will contain logs, IM logs, who the person is, what they do in their spare time, what forums they visit, their picture (if any) and etc. I do this from a TOR-accessed Hushmail account, so no one knows who the hell it is. One time I sent the email to the offender's mother. He sure thanked me with some profanities on that one (which were subsequently forwarded to his mother).
There's ways of "attacking back" in such a way that script kiddies die out, but you have to totally overwhelm them with your sheer capability to outsmart them.
Let's face it, we're all guilty of being lax in our network activity and leave IP trails on logs that Google indexes. It makes no sense to sit back and complain about script kiddies when it's quite obvious that we're unwilling to take them to task when they probe. The information is there, you just gotta do some digging and learn how to use Google's Advanced features. It's important to make your response to their actions overwhelming, so they are never tempted to turn back to random probing again.
One way to help thin this sort of thing down a bit is to use a non-standard high port (above 1024) for your SSH daemon.
This keeps the 5|<r1p7 |<1dd3z from being able to trivially find you SSH server.
Ideally, you want to do this in combination with code that watches for a port-scan and adds a firewall rule to block the scanning address.
Yes, this won't completely stop abuses of your SSH server - there's always a chance that somebody will stumble across it, so you should keep it up to date on security patches and disable password login (in other words REQUIRE a keypair to access). But this greatly reduces the amount of crap
www.eFax.com are spammers
Not hard to set up snort+iptables to automatically set up entries to DROP packets from probing hosts. Response is not instantaneous if you're just getting scanned quickly by random lusers from some backwoods Chinese technical college (probably their idea of a lab assignment). Of somewhat limited use for ports inside firewall, but a lot of firewalls these days have snort-like capabilities anyway.
Port scans are part of the business. I don't care who scans me - only port 22, 80, and 443 are open, so what?
Give a man a fish and you have fed him for today. Teach a man to fish, and he'll say "WHERE'S MY FISH, YOU IDIOT?"
Wax on.....Wax Off
This brings us to an issue I've wondered about for a long, long time.
Where are the detailed IP databases? Who is compiling them? (You know some intelligence and other agencies are surely generating these database, but are there any that are public other than the search engines?)
Google would be great if you could put in an IP and get a list of all the things that IP searched on. Imagine the possibilities in tracking people down. Yes, a huge security issue, but you know it's being done. A few select corporations and government agencies probably have the means to profile IP addresses. It's just a matter of time before this information is more widely accessible in an organized format.
I wrote an article back in 2002 (http://www.securityfocus.com/guest/16531), which was published on SecurityFocus, in response to Mullen's initial SecurityFocus article.
Not having read the book, I can't be sure, but according to the review there didn't seem to be much of a dissenting opinion in the book on the question of whether aggressive tactics are desirable (or effective).
That's unfortunate, since as you'll see in my article, I think a good argument can be made that aggressive network defense is both morally bankrupt and ultimately ineffective.
God is my Palm Pilot.
There was hardly any actual content about what to do to for "Aggressive Network Self-Defense". Just minor stuff in one chapter like changing the banner, and the only thing interesting I learned was about screwterm. A client side attack you can do when someone connects to a port you can trick them into executing a malicious command string. That's it.
But blocking everything but the US isn't a problem?
This won't work for most companies; after all this is a/the world wide web?
http://interviews.slashdot.org/article.pl?sid=04/1 0/20/1518217&tid=192&tid=214&tid=126&tid=11
4) Who would win? (Score:5, Funny) - by Call Me Black Cloud
In a fight between you and William Gibson, who would win?
Neal:
You don't have to settle for mere idle speculation. Let me tell you how it came out on the three occasions when we did fight.
The first time was a year or two after SNOW CRASH came out. I was doing a reading/signing at White Dwarf Books in Vancouver. Gibson stopped by to say hello and extended his hand as if to shake. But I remembered something Bruce Sterling had told me. For, at the time, Sterling and I had formed a pact to fight Gibson. Gibson had been regrown in a vat from scraps of DNA after Sterling had crashed an LNG tanker into Gibson's Stealth pleasure barge in the Straits of Juan de Fuca. During the regeneration process, telescoping Carbonite stilettos had been incorporated into Gibson's arms. Remembering this in the nick of time, I grabbed the signing table and flipped it up between us. Of course the Carbonite stilettos pierced it as if it were cork board, but this spoiled his aim long enough for me to whip my wakizashi out from between my shoulder blades and swing at his head. He deflected the blow with a force blast that sprained my wrist. The falling table knocked over a space heater and set fire to the store. Everyone else fled. Gibson and I dueled among blazing stacks of books for a while. Slowly I gained the upper hand, for, on defense, his Praying Mantis style was no match for my Flying Cloud technique. But I lost him behind a cloud of smoke. Then I had to get out of the place. The streets were crowded with his black-suited minions and I had to turn into a swarm of locusts and fly back to Seattle.
The second time was a few years later when Gibson came through Seattle on his IDORU tour. Between doing some drive-by signings at local bookstores, he came and devastated my quarter of the city. I had been in a trance for seven days and seven nights and was unaware of these goings-on, but he came to me in a vision and taunted me, and left a message on my cellphone. That evening he was doing a reading at Kane Hall on the University of Washington campus. Swathed in black, I climbed to the top of the hall, mesmerized his snipers, sliced a hole in the roof using a plasma cutter, let myself into the catwalks above the stage, and then leapt down upon him from forty feet above. But I had forgotten that he had once studied in the same monastery as I, and knew all of my techniques. He rolled away at the last moment. I struck only the lectern, smashing it to kindling. Snatching up one jagged shard of oak I adopted the Mountain Tiger position just as you would expect. He pulled off his wireless mike and began to whirl it around his head. From there, the fight proceeded along predictable lines. As a stalemate developed we began to resort more and more to the use of pure energy, modulated by Red Lotus incantations of the third Sung group, which eventually to the collapse of the building's roof and the loss of eight hundred lives. But as they were only peasants, we did not care.
Our third fight occurred at the Peace Arch on the U.S./Canadian border between Seattle and Vancouver. Gibson wished to retire from that sort of lifestyle that required ceaseless training in the martial arts and sleeping outdoors under the rain. He only wished to sit in his garden brushing out novels on rice paper. But honor dictated that he must fight me for a third time first. Of course the Peace Arch did not remain standing for long. Before long my sword arm hung useless at my side. One of my psi blasts kicked up a large divot of earth and rubble, uncovering a silver metallic object, hitherto buried, that seemed to have been crafted by an industrial designer. It was a nitro-veridian device that had been buried there by Sterling. We were able to fly clear before it detonated. The blast caused a seismic rupture that split off a sizable part of Ca
http://www.dshield.org/
I deal with a graphics department: Login disclaimer:
Lookout
I know Script-fu
Can someone 'out there(As In - The US)' please get Syngress to "Force Replicate" this book to Local(As In - In~dia) Publishers cause i've read the sample chapter and boy, does it sound interesting... On a more serious note... Waiting for this book to hit the shelves in India (P.S. And if you're wondering, No, I'm not from Bangalore[If you know what I mean!])