Slashdot Mirror


Goldman Sachs Trading Source Code In the Wild?

Hangtime writes "The world's most valuable source code could be in the wild. According to a report by Reuters, a Russian immigrant and former Goldman Sachs developer named Sergey Aleynikov was picked up at Newark Airport on July 4th by the FBI on charges of industrial espionage. According to the complaint, Sergey, prior to his early June exit from Goldman, copied, encrypted and uploaded source code inferred to be the code used by Goldman Sachs to process in real-time (micro-seconds) trades between multiple equity and commodity platforms. While trying to cover his tracks, the system backed up a series of bash commands so he was unable to erase his history, which would later give him away to Goldman and the authorities. So the question is: where are the 32MB of encrypted files that Sergey uploaded to a German server?

34 of 324 comments (clear)

  1. Surely not? by fuzzyfuzzyfungus · · Score: 4, Insightful

    I can't believe that Goldman's algorithmic trading code is more valuable than its list of root passwords to governments all over the world...

    1. Re:Surely not? by Richard_at_work · · Score: 5, Interesting

      What if having the code allowed you to analyse it for ways to game the system? Knowing precisely how the system will react in certain circumstances could give you a serious leg up when attacking the system on the markets (trade limitations, trend spotting for error codes or edge cases et al).

      This code could be worth significant amounts of money on the international fraud market.

    2. Re:Surely not? by mysidia · · Score: 4, Insightful

      Passwords can be easily changed by any old sysadmin, with minimal damage, as long as the passwords are changed quickly, or remote access is locked out, the damage can easily be mitigated very rapidly.

      Changing source code (to allay use of it by the thief to attack its owners, beat GS at their own game, or sell to competitors), is time-consuming, and requires the assistance of many software experts (programmers).

      The damage can only be mitigated by shutting down the system, and waiting a long time for changes to get made, or for the software to get rewritten, to protect against evil third parties knowing the trading system's flaws.

    3. Re:Surely not? by Anonymous Coward · · Score: 5, Insightful

      Exactly. Analyzing the source code will tell you how Goldman Sachs trades its stuff. It's not valuable because it was so expensive to develop this stuff, it's expensive because it shows how they play the game with what kind of strategy, and the stakes of the game is extremely high. It's like knowing how your opponent plays poker when the stakes are on the magnitude of billions of dollars.

      If the source code is in the wild, Goldman Sachs is forced to stop all related real-time trades, because their strategy is completely exposed, and once somebody exploits it, they will lose money really quickly. (Just imagine how many transactions they can make per second, and imagine every one of those transactions lose some money in average.) That means they get forced to leave the market until they develop a new trading system, or at least, re-develop their strategy. That costs a lot of money because they have to stop doing investments and leave the money some place safe.

    4. Re:Surely not? by A+beautiful+mind · · Score: 4, Insightful

      Excellent! If knowing the source code for _financial trading mechanisms_ allows for gaming the system, then it's a very good thing that the code was exposed. If anything, I'd expect banking code to resist outside intrusion.

      --
      It takes a man to suffer ignorance and smile
      Be yourself no matter what they say
    5. Re:Surely not? by 192939495969798999 · · Score: 5, Funny

      Based on what the markets have been up to, I'd say this code has been out there and has been actively exploited for at least 18 months.

      --
      stuff |
    6. Re:Surely not? by Richard_at_work · · Score: 5, Interesting

      I'm not talking about exploits or bugs, I'm talking about knowing *precisely* how the code will react in given circumstances, *precisely* which edge cases are handled in code, *precisely* what results in an error state and how that error state is handled.

      Knowing such things will allow you to tailor your fraudulant trades so as to not raise suspicion, or to make more money within a set amount of time. If you know precisely how far to push your actions, and then push no further, then you could continue with the same fraud for longer than you would otherwise without being discovered. If you know how often the trend analysis reports are run, and how they do what they do, then you can tailor your trades so as to not appear on those reports - just enough, no more.

      All of which means you can make more money without being detected - and you haven't attacked the software itself, you haven't changed how the code works, you have stayed within the boundaries that the software creates. All because you knew *precisely* how the code works.

    7. Re:Surely not? by dkleinsc · · Score: 4, Insightful

      Be fair: Goldman Sachs has way more control over government policies than a mere root password would give them. They don't just have root passwords, they have root passwords, physical access, and insider support.

      --
      I am officially gone from /. Long live http://www.soylentnews.com/
    8. Re:Surely not? by Opportunist · · Score: 4, Funny

      No, but you know the old saying. Give a man source code and he'll review for a day. Give a man the right passwords and he'll review source code until he gets locked away.

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    9. Re:Surely not? by captainpanic · · Score: 5, Insightful

      The fact that one can compare the strategy in big business with poker shows clearly why I think we're all better off when this whole banking business is downscaled a bit.

      While in the good old days the banking business was simply a place to store and borrow money, it has now become a mess so complicated that nobody really understands it anymore.

      It can be interesting to see what happens next... although I also realize that this accident can cause some innocent people to lose their jobs.

  2. Even More Interesting by eldavojohn · · Score: 5, Interesting

    Even more interesting is in the second article that notifies us that Goldman Sachs has been removed from the NYSE 15 Most Active Members Firms Weekly Report. GS had been #1 the week before and now they're not even on it. These fifteen firms alone represent about 98% of all trades with the NYSE. So what happened?

    The author mentions some things but gives no clear motivation for GS hiding their stats. I would speculate that if one of your developers copied your code and uploaded it to a server discretely, you could have that in your logs and not notice it for days or weeks. But if he then did something to your system to ensure his new employer's ownership of that code you wuold notice that pretty damn fast I imagine. Sergey Aleynikov sounds like a brilliant coder but maybe he's not so smart on legal issues, is it possible he completely hobbled GS to please his new employer? Are they keeping their transaction report hush hush so investers don't worry? Was Sergey Aleynikov thinking he could sell the code and the rights to the code? After all, if he could remove all copies of the code from GS how could they take people to court over the code without a local copy to prove ownership?

    If GS remained #1, they would have left themselves on the list. I presume that something else related to this has gone wrong with their operation, the news just hasn't broke yet.

    --
    My work here is dung.
    1. Re:Even More Interesting by eldavojohn · · Score: 4, Insightful

      It seems unlikely to me that any single person, or even small group of people, would have the capability to remove all copies of this code, binary and source, from the company's information infrastructure.

      Ah, the double edged sword of secrecy. Keep the location of your secrets solitary so that you don't have to keep track of multiple copies. With every new location it is stored, the odds of corporate espionage double. Had they ascribed to keep it in one place, this would be all too possible. And let's face it, if you're shelling out $400k to one or two developers, you do checks on them and make sure they can handle the keys to the palace.

      Is it possible that they have suspended use of this code because they fear that someone analyzing it could profit from the trades it would have made?

      I had not thought of this, although I believe these transactions would be done on secure networks with insane encryption. Again, if you're shelling out $400k to a developer, you're probably laying fiber straight to the NYSE's servers from yours or at least including a level of encryption that is so high it would take the NSA days to decrypt it -- rendering the data worthless as it's public by then.

      Still if they don't understand how it works, I could see them doing that. I could not, however, see them sacrificing a week's worth of trading for these fears without first researching them. Do you know how much money and customers that would cost them?

      --
      My work here is dung.
    2. Re:Even More Interesting by morgan_greywolf · · Score: 4, Interesting

      I had not thought of this, although I believe these transactions would be done on secure networks with insane encryption.

      Knowing the algorithms that Goldman Sachs uses to do realtime trades could possibly give you insider information you wouldn't have otherwise had. When doing realtime transactions, if you know the ORDER Goldman Sachs will use to do the transactions, for instance, you could buy certain stocks a minute or two before Goldman Sachs does...since the act of GS (or anyone) buying a stock will increase its trading price some, and you've just automatically made money and hurt GS at the same time.

      This type of insider trading information will likely result in criminal prosecution by the SEC, however, so don't try this at home, kiddies.

    3. Re:Even More Interesting by Anonymous Coward · · Score: 5, Informative

      unset HISTFILE and he (might) have been OK.

      Not likely... since most financial institutions capture not only the commands, but the output to STDOUT/STDERR, and that is logged outside, upstream of the physical machine, using tools like PowerBroker, Sudoscript, and others.

      I know, because I work for $LARGE_BANK, and we use it there. You can't just symlink ~/.bash_history to /dev/null, or unset HISTSIZE or any of that.. even the !shell trick out of vim doesn't help, because everything you type and everything it outputs, is logged where you can't wipe it out.

  3. nationalism vs. anti-corporatism by DoofusOfDeath · · Score: 5, Insightful

    It's funny... I normally find myself loathing companies like Goldman Sachs for hyper-selfish capitalism, finding ways to get rich at taxpayer expense, etc.

    But then, when I see industrial espionage by Russians, Chinese, Israelis, etc. against those very same corporations, a sense of nationalist anger makes me forget my anti-corporatist anger. Somehow I completely fail to have a sense of schadenfreude for the corporations that I normally hate, and I don't know why.

    Being human is strange.

    1. Re:nationalism vs. anti-corporatism by fuzzyfuzzyfungus · · Score: 5, Interesting

      That, my friend, is what having your self interest 0wn3d by your primate instincts feels like.

      Don't worry, multinationals have no such weaknesses, and won't bat an eye when you are on the hook.

    2. Re:nationalism vs. anti-corporatism by Gilmoure · · Score: 4, Insightful

      That us-and-them geographical, language or ethnicity identification is pretty weird. Try to cultivate the "scared bunny" / "everyone's out to get me" attitude and you won't feel sorry when a local coyote or mountain lion gets run over by a foreign truck.

      The whole us/them left/right axis is just part of the circuses to distract the crowd. If you really want to see the us/them divide, it's the upper crust Kleptocrats against everyone else. We're all just cattle and cat food to them. The only way they can make the tens of thousands of dollars a minute they do is by harnessing the earning power of lots of ants and skimming off a bit of everyone else's productive power.

      After WWII, the traditional pyramid shape of society (large number or poor, smaller number of middle class and very small number of upper class) changed towards more of a diamond shape. Ever since then, a lot of folks have been trying to revert that, driving down real wage gains while increasing productivity. All that benefit of efficiency has to go somewhere and it's not going down to the poor and it's not showing up in the paychecks of the works so it must be flowing up towards the top.

      --
      I drank what? -- Socrates
  4. Colour me surprised by Antidamage · · Score: 5, Funny

    Pure evil partnered with Linux?

    I'm pretty sure that can't happen. I'm going to pray to Linus for guidance.

    1. Re:Colour me surprised by neomunk · · Score: 5, Funny

      Linux isn't GOOD by nature. It's not BAD either.

      It's like The Force, you see. All around us, binding our processes behind the scenes in ways it takes an enlightened eye to perceive. There is always Linux prodding along the information swirls and eddies that make up our modern lives, unconcerned with the nature or usage of said information.

      Windows is like The Force too, except I've never heard a Windows acolyte preach any path other than the quicker, easier, more seductive one...

  5. Proving theft.. by MosesJones · · Score: 5, Interesting

    Its hardly surprising that this sort of code is highly valuable but the challenge is surely going to be proving that it was actually stolen. If they have a bash history that doesn't include the IP addresses but just shows that he created a tar ball then where is the proof that he actually stole anything at all?

    The original is of course still there, what he took is a copy, so you can't show something is missing.

    They currently don't know where it has gone, so they can't prove that a copy was moved outside the firewall successfully

    If he hasn't yet sold the stuff on they can't prove there was a financial benefit linked to the theft

    So how will they prove beyond a reasonable doubt that some actual theft has gone on?

    Its not like he has just lobbed it on Bit-torrent or posted it to Wikileaks. What he has done is taken a copy of the code, which means its Intellectual Property and copyright issues rather than "simple" theft and therefore they really need to prove (surely) that he has done something with the code.

    Should be interesting to see how the police "generate" and prove the evidence on this one.

    --
    An Eye for an Eye will make the whole world blind - Gandhi
  6. No one will touch that code. by Tei · · Score: 4, Funny

    Probably people that would do something similar, will never touch that code, for fear of be "tainted".

    And anyway.. most code create new stuff that is worthy a patent. But not because most programmers are genius, but because the patent system is crap. No one sould care about what is on that code, because any professional can recreate the code anyway with the same features. There are not "sacred" code in this world. More the other stuff... Is really hard to make other people look at your code. The bussines type of guys dont want to look at your code. The users don't want to look at your code. Often, others programmers don't want to look at your code. Maybe is more valuable and interesting the features, and the documentation, the analysys of the problem, than the fucking source code. I do like to read source code, but I am one in a million (of programmers) and theres probably around 7 million programmers, so probably theres only another 7 dudes like me :-I

    --

    -Woof woof woof!

  7. Non-story by Anonymous Coward · · Score: 5, Informative

    GS's code for program trading is all written in a proprietary programming language called slang and relies on a proprietary database (secdb).

    The install for that is a hell of a lot bigger than 32 MB, so this is probably just a few trading algorithms that a pissed-off developer has copied away.

    It will be largely useless without the slang and secdb components and will be totally unsafe to trade off without a sufficient source of historic data and reference data, correctly formatted and loaded into secdb.

    The idea that this leak is likely to be in any way materially damaging to GS is frankly a joke to anyone with even a passing knowledge of how these systems really operate.

    But don't let that get in the way of your paranoia about how the world works.

    1. Re:Non-story by MadFarmAnimalz · · Score: 4, Insightful
      It will be largely useless without the slang and secdb components

      If you didn't have a python/java/$LANGUAGE interpreter and no python/java/$LANGUAGE documentation you'd probably still be able to glean the logic and algorithms from the code. The trade secret is the algorithms not the computer instructions representing them.

      --
      Blearf. Blearf, I say.
    2. Re:Non-story by anothy · · Score: 4, Interesting

      i have a somewhat-better-than-passing knowledge of how these systems work. i'm very unconvinced by your explanation.

      you seem to be assuming the intent would be to out-compete Goldman by re-implementing this system, perhaps with some changes/optimizations. for that, sure, you'd need the rest of the environment. but a good understanding of the algorithm and implementation could be obtained without the rest of the environment (like i can read C# code and extract the algorithms without having the rest of the environment). that seems like it would be enough to game Goldman's system (which is a sizable part of the system overall).

      note that i am not asserting that this is a catastrophe for Goldman, just that your explanation isn't convincing. i will, however, agree with a previous poster that Goldman's sudden absence from NYSE's 15 most active members, rather than being #1 as they had for a good while, is very suspicious.

      --

      i speak for myself and those who like what i say.
  8. The code is worthless by lxs · · Score: 4, Funny
  9. From the summary: by Anonymous Coward · · Score: 5, Funny

    "The world's most valuable source code could be in the wild."

    Duke Nukem Forever? Oh joy.

  10. What's the exit strategy? by Sits · · Score: 5, Insightful

    If I were a rival to Goldman Sachs I would be terrified of someone offering me Goldman's source code. If I use it and Goldman find out then I'm in a world of trouble. If I use it but Goldman don't know for a bit AND the person who offered it knows I used it, then they can blackmail me. Even if I don't use it there could be expensive legal battles to prove my innocence ("Exhibit A shows the same loop variable counter is used in these two different source code bases." "?!"). How do I know it's not a trap? It would be like someone offering the secret of Coke to Pepsi - what do you expect Pepsi to do? Use the secret? What if they like their product more?

    Obviously there must be another angle if this situation is true to drive someone to actually do it. I just can't figure it out at the moment.

    1. Re:What's the exit strategy? by zarkill · · Score: 4, Informative

      It would be like someone offering the secret of Coke to Pepsi - what do you expect Pepsi to do?

      that very thing happened a few years ago - http://news.bbc.co.uk/2/hi/business/5152740.stm

      pepsi declined the offer and reported it as a theft of trade secrets.

  11. Their source code is useless by bartwol · · Score: 4, Interesting

    I worked for a financial services company that had similar types of systems. The legal department and security people were always concerned about people stealing our source code.

    But their fears were unfounded. Why? Because the source code is highly customized code that not only implements thoroughly non-standards-based algorithms, but is also tightly coupled to underlying hardware/software platforms (and the non-standardized APIs of their peer systems). The result: you can't run it anywhere but on the infrastructure of the company for which it was built. Sure, you could pull out a subroutine here or there. But overall, it's pretty worthless stuff.

    Humorously, we had a large, difficult, multi-year project to port our code to a newer hardware platform (same O.S. and language tools). I joked that we should post all our source code on the web for free unencumbered download, and if somebody could get it to run on the newer (or any other) platform, we could pay them $2 million for their effort and still come out way ahead in the deal. Everybody laughed and agreed that that would be a dream come true.

  12. Re:Alternative theory....(and more probable) by Pixie_From_Hell · · Score: 5, Informative
    It's a good alternate theory, but you're a week off:

    On the week ending June 19, Goldman, for instance, was ranked first on the NYSE program trading list. But on the week of June 22, Goldman mysteriously didnâ(TM)t appear on the list of the top 15 firms at all.

    So unless the Fourth of July is celebrated in June, I think that's not the issue.

    Of course, I'm not checking the volume of trading either, so there could be something to your theory. (Of course, if GS bailed out for a week, wouldn't that lower the volume significantly? Weren't they the number one traders?)

  13. Information wants to be free! by jollyreaper · · Score: 4, Funny

    I think it's wonderful that the code has been reintroduced to the wild. Looks like their captive breeding program has been quite a success!

    --
    Kwisatz Haderach
    Sell the spice to CHOAM
    This Mahdi took Shaddam's Throne
  14. I reverse engineered the GS trading algorithm by Anonymous Coward · · Score: 4, Funny

    Based on the Rolling Stones article I was able to reverse engineer the core Goldman Sachs trading algorithm:

    #include
    int main( int argc, const char* argv[] )
    {
    pump();
    dump();
    }

  15. Rolling Stone alleges Goldman Sachs corrupts... by Futurepower(R) · · Score: 4, Informative

    There is a long article in Rolling Stone magazine this month, The Great American Bubble Machine, alleging that banks control the U.S. government and that Goldman Sachs is one of the leaders of the corruption. Anyone wanting to know more about how the financial corruption of the U.S. government is operated should read the article. The article alleges that Goldman Sachs will use any manipulation whatsoever to get money.

    This Slashdot comment, The Investment Banking cohorts JPMorgan Chase and Goldman Sachs are the **huge** winners, discusses some of the issues. The Slashdot comment links to the Rolling Stone article, but that copy of the article has been removed.

    According to the Rolling Stone article, Goldman Sachs makes money mostly through corruption, not investment insight. Your tax money may be their profit: Goldman Sachs takes $12B Bailout, Hands out $14B Bonuses. (The article lists British pounds, the Digg article lists dollars.)

    The corruption is not new. For example, see the May 13, 2002 article in Business Week, How Corrupt Is Wall Street? New revelations have investors baying for blood, and the scandal is widening Quote: "Consider Enron, which has paid $323 million to Wall Street in underwriting fees since 1986, according to Thomson. Goldman, Sachs & Co. (GS ) pocketed $69 million of that..." Enron, of course, went bankrupt when it was discovered the company was dishonest.

    Beginning in 2002, Warren Buffett began very publicly calling derivatives "financial weapons of mass destruction". That particular part of the corruption was caused by the removal of laws designed to prevent fraud, at the beginning of George W. Bush's first term. Nothing was done to reinstate the laws, and that's why we are suffering now. Why was nothing done? Numerous articles say the corruption was allowed to happen because Goldman Sachs people control the U.S. government's Federal Reserve Bank. To give a small indication of the level of corruption, the "Federal Reserve Bank" is not federal, there is nothing in reserve, and it is not a bank.

  16. The bankers certainly knew there would be a crash. by Futurepower(R) · · Score: 5, Insightful

    "The rolling stone article is conspiracy drivel..."

    Thoughts:

    1) The linked article is not the article published on paper in Rolling Stone, although confusingly it has the same name.

    2) A Slashdot comment is not meant to be a complete discussion of anything. A Slashdot comment can alert you to the need to do further research.

    3) The actual Rolling Stone article in the paper edition only says things that have been reported elsewhere.

    4) The bankers certainly knew there would be a crash, and that they would profit from the crash, and that the crash would be very destructive to everyone else.

    5) Matt Taibbi's article, The 52 Funniest Things About The Upcoming Death of The Pope lacks any humor. It's just stupid. In number 26, he guesses that the pope lives, and he dies. The point of the article seems to be that the pope gets less respect now; a big difference from 50 years ago. But it's a terrible article.

    6) What is important is not what someone said, but the facts.