Slashdot Mirror


Wired To Publish Slammer Source Code

Juan Carlos writes "Wired Magazine is going to publish the source code to the SQL Slammer worm in its next issue, due Tuesday, along with some kind of play-by-play of the worm's rapid spread. I actually think this is a neat idea for an article. But the fact is, the disassembly of Slammer (aka Sapphire) has been available on the Net since late January -- just hours after the worm started to spread."

52 of 158 comments (clear)

  1. But the fact is..? by Phroggy · · Score: 5, Insightful

    But the fact is, the disassembly of Slammer (aka Sapphire) has been available on the Net since late January -- just hours after the worm started to spread.

    Ummm...

    So?

    Of course people started looking at the code as soon as it was unleashed, and of course they wrote their own descriptions of how it worked. Maybe Wired could do a better job of explaining it to their readers? Besides, I'd bet most of the people who read the magazine didn't read that disassembly you referenced.

    Wired thinks they have a story that will interest people. They're probably right. If you're suggesting that Wired must have stolen it, I think you're being silly, and if not, then what's the issue here?

    --
    $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
    $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    1. Re:But the fact is..? by Phroggy · · Score: 2, Insightful

      Better than eeye?

      Perhaps better for Wired's readers, which are different than eEye's readers.

      Nope, that analysis is probably what Wired has based their analysis on.

      You don't think Wired is capable of doing their own analysis on source code they've had access to for six months?

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    2. Re:But the fact is..? by monkey_tennis · · Score: 3, Insightful

      But that's the point. Eeye analysed the code for one audience, but that won't be accessible to most people. Wired generally does a good job of introducing complex subjects clearly for the layman.

    3. Re:But the fact is..? by rkz · · Score: 2, Informative

      Why dont you then, I can't because the nearest place to me that sells it is about 50 miles away.

      They have got some brilliant articles in the magazine just look at their recent coverage of the Iraqi war and the tech used by Allied soldiers.
      Well I could always subscribe but I don't really want to spend $70.

      Anyway should be interesting to read!

    4. Re:But the fact is..? by nautical9 · · Score: 2, Insightful

      I don't like speaking for people, but I imagine the submitter was just trying to stave off the inevitable cries of "but this will only encourage the script kiddies!", by showing that it's already been available online for some time.

    5. Re:But the fact is..? by Machine9 · · Score: 2, Insightful
      This is exactly what I was thinking...

      but basically, being a script kiddie means you don't know how to do stuff yourself...

      So I'm guessing the odds of a kiddie modding the worm into something REALLY deadly are quite slim to begin with.

    6. Re:But the fact is..? by los+furtive · · Score: 2, Interesting

      Wired is a wannabe rag. ;)

      No, its readers are. But I think the real point is that Wired is doing something atypical and more akin to 2600: The Hacker Quarterly.

      --

      I'm a writer, a poet, a genius, I know it. I don't buy software, I grow it.

  2. Good idea by powerline22 · · Score: 5, Interesting

    While the code has been available for a while on the internet, Wired is probably doing this to make an example of what Windows users are facing, and are probably going to explain as much as they can with the code.

    1. Re:Good idea by monkey_tennis · · Score: 3, Informative

      Exactly right. As the link above shows the code is in assembley langauge, which most people would need some help with.

    2. Re:Good idea by jj_johny · · Score: 4, Interesting

      More to the point, most of the press and incident reports talk about the infection from the single machine point of view and then jump up to the total numbers of infected machines without mapping out what happens in between the two. I hope they talk about percent of machines left vulnerable (idiots that have their SQL on the internet), how the jump from one host to another works, how effective the jump is... In other words, I would like to see the epidemiology of a computer virus.

  3. You can picture it now.... by MosesJones · · Score: 5, Funny


    Reader : "I wonder if they've patched the internal servers here at work...."

    Types in the slammer code, compiles it and runs it up...

    Reader : "Nothing seems to be happening"

    Meanwhile in another part of the building

    Manager: "What do you mean the whole UAT environment has gone down?"

    --
    An Eye for an Eye will make the whole world blind - Gandhi
    1. Re:You can picture it now.... by archen · · Score: 3, Funny

      If the users on the network I admin actually started compiling their own code, I'd shoot myself. It's bad enough not getting them to click on every attachment. God knows what they would compile on their own.

  4. unfortunatly... by hatrisc · · Score: 2, Insightful

    it may bring about new ideas for people to exploit. a detailed description of a worm like this is just what some wanna be h4x0r needs to get into it. even the source code as it appears in that link is documented enough for someone with some skills to know what's going on. a detailed description? that's a goldmine.

    --
    I write code.
    1. Re:unfortunatly... by emo+boy · · Score: 2, Insightful

      That's not necessarily true. Most people lack the motivation to actually sit down and learn something like that. The kind of people who would...well they'd probably figure out how to do it some other way eventually. It's not really a goldmine until you do something productive with it. In the meantime it's a nice way for the /. crowd to flex their geek muscles by spending half their workday looking at worm code. :)

    2. Re:unfortunatly... by Chatterton · · Score: 2, Interesting

      Some years ago 2 book have been on the shelves "naissance d'un virus" (born of a virus?) and "mutation d'un virus" (mutation of a virus?) with all the source codes with the complete polymophic mutation engine (TPE). All wannabe h4x0r can take from these book all is needed to write viruses. Did you see rampant virus propagation when they have been out? not me. And second point: From this source they can write worm who work like slammer and then detectable like slammer by antivirus...

  5. But that doesn't mean... by Advocadus+Diaboli · · Score: 5, Funny

    ...that SQL-Slammer is going to be Open Source, does it?

    1. Re:But that doesn't mean... by ecalkin · · Score: 4, Funny

      the original code was (is) copyrighted, assuming it was written in a country that has copyright laws.

      somehow i don't think that the owner of this copyright is gonna be knocking on the door to complain.

    2. Re:But that doesn't mean... by Anonymous Coward · · Score: 2, Insightful

      Worms and viruses are de-facto public domain in terms of copyright. Anybody can get a copy of them - usually inadvertently - and there is nobody to claim copyright.

      A disassembly is equivalent to the binary in terms of copyright. The copyright for any human-generated explanations and annotations belongs to whoever wrote them.

      Open source usually refers to the availability of the original source code, which usually isn't available for worms and viruses.

      Theoretically, the author of a worm or virus could probably claim copyright violations for any copies created by methods other than self-propagation, but that would be ridiculous because copyright violations are (or at least should be) minor issues compared to spreading a worm or virus.

  6. Bring down the internet without complicated worms by Rosco+P.+Coltrane · · Score: 3, Funny

    June 5, 2003 -- Think of it as a how-to guide to bringing down the Internet.

    Here's my guide :

    1 - unplug the network cable

    Very effective DoS : nobody will be able to see your server from outside and your network connection will become very slow.

    --
    "A door is what a dog is perpetually on the wrong side of" - Ogden Nash
  7. So, by imadork · · Score: 5, Insightful

    Wired can publish the code to a computer virus, but not to DeCSS? That seems backwards to me. It seems like every day has been Opposite Day in the Tech industry lately...

    1. Re:So, by Paul+Boutin · · Score: 3, Informative

      Wired published the compete DeCSS Perl script, with an explanation of how it worked, under the headline "DVD Hacking for Dummies," three years ago. No one noticed.

      --
      Paul Boutin | writer for Slate, Wired, etc
  8. SCO to sue ? by Anonymous Coward · · Score: 5, Funny

    ... they had better pray that SCO code isn't used in it.

  9. Good publicity by kinnell · · Score: 5, Insightful
    But the fact is, the disassembly of Slammer (aka Sapphire) has been available on the Net since late January -- just hours after the worm started to spread

    That may be the case, but it's still a good way to obtain publicity, and thereby sell more copies. They've just managed to get a free advertisment on slashdot, after all.

    --
    If I seem short sighted, it is because I stand on the shoulders of midgets
    1. Re:Good publicity by evilviper · · Score: 2, Interesting

      I'm not too sure it was free... The article says it's already available, yet the editors posted it.

      Hmm, I can't help but wonder who's hand got greased.

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  10. in other news by lingqi · · Score: 3, Interesting
    Ashcroft wants a tougher Patriot Act .

    wonderful world, isn't it? How many years before we can't publish this kind of stuff on magzines?

    --

    My life in the land of the rising sun.

  11. Source code by spakka · · Score: 3, Informative

    No, they will publish the assembly code. Not the same thing.

    1. Re:Source code by BlackHawk-666 · · Score: 3, Insightful
      Ahem, since this virus was clearly written in assemlber then they are actually publishing the source code. It may have different labels for the JMP instructions, but aside from that (and working out where your data locations are) it should be exactly the same code that the cracker used. Each assembly instruction has a 1 to 1 mapping with machine code instructions.

      Still, if they publish the code shown ay eEye then I suspect it won't work since it needs data segment and code segment hints and stuff to make an exe, although it could be incorporated into another project faily easily.

      --
      All those moments will be lost in time, like tears in rain.
    2. Re:Source code by p3d0 · · Score: 2, Insightful

      Assembly doesn't have a 1-1 mapping to machine code. There are macros, labels, comments, data declarations, branch optimizations, syntax (intel vs. at&t) etc, etc, etc. There's no reason to believe that a disassembly is equivalent to the source code in any important way except that it assembles to the same binary.

      --
      Patrick Doyle
      I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
    3. Re:Source code by stanmann · · Score: 2, Informative

      IME, Dissassembled assembly reads logically.. ie top down, and stripped optimised compiler output looks like nasty vile spagetti. JMPs to arbitrary locations and JMPs back... But that is just my observation. perhaps compilers have gotten better since I last dissasemmbled source

      --
      Food not Bombs is a nice platitude but it breaks down when you notice that the Bombees are usually well fed
  12. What about the DCMA? by WIAKywbfatw · · Score: 2, Funny

    Is publishing this code a contravention of the DCMA?

    --

    "Accept that some days you are the pigeon, and some days you are the statue." - David Brent, Wernham Hogg
  13. Re:Wired by curtisk · · Score: 3, Insightful
    ....Which is probably why they are writing an story on it, tech-savvy or not, these things have the potential to screw-up your workplace, so any knowledge the reader can get on it is better than none. It may be dumbed down, but thats fine as long as the point gets across. I don't suspect they'll do a line by line assembler overview :)


    As far as the code itself,(I was one of the "geeks" who read it right after it was made public), I never get tired of the drive that people who just want to cause havoc have. When you look thru the code and realize that all that damage can be done with a few meer Kb's and be completely memory resident(no tracks), you just have to chuckle in spite of yourself, all the CPU power in the world can be smacked hard by a wee bit of code. Ain't that life? :D

    --

    Sehr geehrter Toilettenbenutzer!

  14. Symantec isn't impartial here by Rosco+P.+Coltrane · · Score: 4, Insightful

    Vincent Weafer, senior director of security response at computer security company Symantec Corp. (nasdaq: SYMC - news - people), said that while detailed articles could be important in raising computer security awareness, they also needed to be handled with care.

    "It's something you need to be cautious of, particularly in a broad-based magazine," Weafer said.

    "You need to be aware of your audience and what you're saying to them," Weafer said.


    In other words Vincent, Symantec is worried that divulging the underlying techniques of a typical worm will demystify viruses somewhat, degrade the "magic bullet against all computer threats" image that antivirus makers enjoy in the general public, and help reduce the fear and panic that compels many computer users to rush to their local software shop to buy the newest and greatest antivirus software when a new virus strikes. After all, a lot of viruses/worms can be avoided if users had sane computer habits, such as never opening executables from an email, but your average computer user doesn't know and Symantec doesn't want him/her to know.

    Remember : Symantec, McAfee and the others have no more interest in taking the myth out of viruses than they want Microsoft to release secure products.

    --
    "A door is what a dog is perpetually on the wrong side of" - Ogden Nash
    1. Re:Symantec isn't impartial here by Surak · · Score: 5, Interesting

      After all, a lot of viruses/worms can be avoided if users had sane computer habits, such as never opening executables from an email, but your average computer user doesn't know and Symantec doesn't want him/her to know.

      Nor are they likely ever to know, honestly. My aunt, whom I characterize as a typical computer user, ran Windows 95 on her box for a long time. One day she was cleaning out her hard drive (because she's insane about organization) and saw two folders named 'Windows' and 'Program Files' on her C: drive, decided she didn't need any folders called 'Windows' or 'Program Files' and proceeded to delete them both.

      Needless to say she called me and said <whine>"my computer doesn't work"</whine;> and when she explained what she did I had a very hard time keeping myself from ROFLMAOing. ;)

      Anyways, my point is that the average computer user is REALLY *that* dumb and that's the thing that's going to keep worms and viruses around for quite sometime to come, regardless of how well operating systems are built, regardless of what Symantec or McAfee do, etc.

  15. Mainstream press by barnaclebarnes · · Score: 4, Insightful

    I think the reason it may be be big deal is that this is in the mainstream press. And this could show people how to write a virus...Of course anyone with half a brain already knows where to find this informaiton anyway but now it will be exposed to the general population.

    --
    [Please type your sig here.]
    1. Re:Mainstream press by BlackHawk-666 · · Score: 4, Insightful
      There have been virus writing kits available for years now with little or no coding required. If this stuff is in assembler then even many experienced programmers wouldn't be able to deal with it. This is *not* going to teach anyone who can't already do it how to write a virus.

      For reference: I can write both assembler and viruses (though I don't do the second) so I have a reasonable idea of what I am talking about. I am the only programmer out of 16 in our shop that can even write in assembler.

      --
      All those moments will be lost in time, like tears in rain.
    2. Re:Mainstream press by Phroggy · · Score: 2, Insightful

      I think the reason it may be be big deal is that this is in the mainstream press.

      I was replying to the submitter's comment about it having been done before. The fact that it's been done before (not in the mainstream press) doesn't detract from the fact that it is now being done in the mainstream press, which is indeed interesting.

      And this could show people how to write a virus...

      It may offer tips to people who are already capable of writing a virus, but those aren't Wired's typical readers. Those not already capable of writing a virus won't suddenly be able to do so after reading how this one worked.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    3. Re:Mainstream press by (trb001) · · Score: 2, Informative

      Amen. I remember back in the late 80's, early 90's, a program that was popular among pirate BBS's, The Virus Creation Kit. It would basically take a set of destructive instructions (format HD, delete files, self-replicate, etc) and attach itself to an executable. Very nice little tool, any moron could have used it.

      This is nothing new. Anyone that complains about Wired's 'lack of responsibility' or other PC complaints is just ill-informed.

      --trb

  16. hmmmm by Cackmobile · · Score: 2, Interesting

    Dunno about this. I am no uber-master programmer but I could get this working from the article probably. While it has been available on the net for a while most people don't know that. This brings it to a wider audience. But then again hopefully most sys admins will ahve fixed the hole.

    --
    -- Karma Karma Karma Karma, Karma Chameleon - Boy George
    1. Re:hmmmm by damiam · · Score: 2, Interesting

      The worm has already spread. The only thing you could do with the source is assemble it and infect yourself, creating just one more node spewing random junk everywhere.

      --
      It's hard to be religious when certain people are never incinerated by bolts of lightning.
  17. Warning! by Anonymous Coward · · Score: 5, Funny

    A new vulnerability has been found in IE that exploits the feature of automatically executing machine code viewed in a text file.

  18. Source Code Hieroglyphics by The+Future+Sound+of · · Score: 4, Insightful

    Wired appeals more to digital enthusiasts than to actual software developers anyway. The publication of the source code is equivalent to the National Geographic showing pictures of hieroglyphics in an article about the pyramids. Most of the readership will just look at the indecypherable code as a form of abstract art than anything else.

  19. Publication lag by salimma · · Score: 2, Insightful
    ... the article was probably researched in April, and written in May. Still quite out of date, but they probably want to be sure that everything about the SQL Slammer worm is already known.

    Sort of a postmortem, really.

    --
    Michel
    Fedora Project Contribut
  20. Source code? by Zog+The+Undeniable · · Score: 2, Funny

    Something this evil must be written in INTERCAL!

    --
    When I am king, you will be first against the wall.
  21. Like in the good old days... by MavEtJu · · Score: 4, Insightful

    It will be like in the good old days, when you bought a magazine and had to type in all the programs they published in there.

    And boy, what a fun we had with debugging the stuff when after two days of typing (my neck! my neck!) the program didn't work.

    --
    bash$ :(){ :|:&};:
    1. Re:Like in the good old days... by AnotherSteve · · Score: 2, Funny

      Yeah, like when Dragon magazine had a program that would calculate the chi-squares on your die rolls so that you could determine if your dice were fair or not. I got my Mom to borrow an Apple ][ from her school so that I could type that damn thing in, and never could get it to work. I was so bitter. In the next issue they printed the errata...

      --
      Information wants to be $1.98/lb.
  22. No, It's a clever ploy... by Anonymous Coward · · Score: 2, Funny

    see, when the virus writer sues Wired under the DMCA or whatever, then the feebs know who to arrest!

  23. It's A Good Idea by defishguy · · Score: 2, Funny

    As a reminder to all readers of Wired (READ-UNSKILLED IT MANAGEMENT AND AMATEURS) that such a small amount of code can do the folling... 1.Disrupt ATMs and Banks 2.Take down servers (humorously unpatched) of the company that created the DB software to begin with 3.Disrupt web communications world wide 4.Cause huge shifts in resources at AV companies 5.Probably more. It is a good good thing. I'm not a coder... I get lost in my own batch file spaghetti as it is! I'm still impressed by the effectivness of the worm. With MS having such a dearth of companies willing to compete against it, black-hat folks seem to have filled the role that companies like BE couldn't. Keeping MS on its toes, and making sure that quality as a whole improves (okay... so there isn't much evidence of that last one, but I'm still hopefull!)

  24. I am waiting for by mental_telepathy · · Score: 2, Funny

    "Worms, Virii, and Trojans" cookbook from Betty Crocker.

    1. Re:I am waiting for by 3.5+stripes · · Score: 2, Funny

      Viruses.

      Betty Crocker always used correct english.

      --


      He tried to kill me with a forklift!
  25. Legal Issue? by nurb432 · · Score: 4, Interesting

    Isn't publishing things like this now considered illegal under the Patriot act ( and related laws )?

    The 'reverse-engineer' issue aside, ( from the DMCA ) this would be considered a product for cyber terrorism, and last I heard we cant discuss details on anything related to terrorism.. be it cyber or 'real' ( such as bomb making )

    Not that I agree that information or knowledge should be squelched just because the people in power don't approve, ( remember the 1st amendment still exists, for now ) but wired might be opening themselves up for a legal battle they CANT win..

    --
    ---- Booth was a patriot ----
  26. from the author by Paul+Boutin · · Score: 5, Interesting
    What Juan Carlos probably meant was: Why is it supposedly controversial to publish something that's already all over the Net? I wrote the story, and I would agree with him. Yes, I've explained how Slammer works in a way non-programmers can hopefully understand. Just as important, we have new data that show how fast it really spread. Is that going to turn teenagers into evil crackers, or is it going to get the kind of people who read Wired - executives, Congress, other journalists - to look at network security more seriously? We think the latter, and we also think it's just a good story that hasn't been told from this angle before.

    I plead guilty to the "wannabe" charge, though. Those who can, do. Those who can't, write magazine articles.

    --
    Paul Boutin | writer for Slate, Wired, etc
  27. Follow the money by mobileskimo · · Score: 5, Interesting

    Wired is obviously publishing this to sell magazines. That's what they do. Did you think they needed any other ulterior motive? The question is who is their audience?

    This benefits none of the hackers. Those that are savvy enough to make use of the code, have no need for the code being published in the magazine. They've already seen it, they may have even toyed with it, might have done so back in January. More than likely, they may read it at their magshop or borrow it from someone for amusement purposes. Perhaps they may purchase it. Certainly the creater of the worm will. Clipped and saved in some album.

    This benefits none of the lay technology folks, the larger band of their customers. They don't have enough background on assembly and how it works, and they haven't the tools. The motivation is there though. If they could get it to work, they could call their friends up and brag about how much a hacker s/he is.

    Completely lay person as someone pointed out will look at it like hieroglyphics. Raise an eyebrow and move on.

    Corporations in the industry. Here's a mixed bag. Raising awareness and de-mystifying can work in both ways. AV companies may benefit, they may not. Raising awareness may result in more sales of AV products by confirming in the public's eye that such things do exist, and with higher frequency, with more substantial impacts. It may lower the sales if the information is provided in a certain manner (for example, you don't run SQL, therefore you don't need AV for this).

    IMHO, I think it will increase business in the industry as a whole. That's what advertising is all about, isn't it? Raising awareness for products? I mean, how could you know you needed a spring-loaded-nose-picker, if you didn't see the commercial warning you about the possible dangers of snot-clog-respiratory syndrome?

    --
    "Last one in is a rotten goblin!" - Kepp