456 points · by jbegley · 9y ago · 450 comments
As I understand from report the main methods used were:
- sendind emails with executable files that victims for some reason executed
- phishing
So, they used script kiddie level tools anyone could use (and they are cheap; you don't have to buy expensive zero-day exploits on a black market). But of course this could be done intentionally so it looks amateur-ish.
This attacks could be easily mitigated. First, OS and applications should not run unknown files from Internet (because some people got used to double click on everything they get in email), second, we should start using physical cryptographic keys instead of passwords. Common people cannot handle passwords, they either make easily guessed passwords or enter them everywhere without thinking. I hate passwords too because they are hard to remember (and please don't suggest that I should download some software and upload my passwords to a "cloud" in NSA-controlled country).
By the way iOS is the only popular operating system I know that doesn't allow to execute files downloaded from web or emails. Apple did it the right way.
The report also contains a pretty useless firewall rule named "PAS TOOL PHP WEB KIT FOUND" that can be used to search malware in PHP files. It is interesting that they have replaced digits in 'base64_decode' function name with regexp as if there were any other similar functions.
Many of the whitepapers that I read about the DNC hack listed the attack's "sophistication" as proof that it came from a state actor, yet it was the most routine, simple attack conceivable. No rootkits, no 0 days, just simple phishing and social engineering.
"the code delivers Remote Access Tools (RATs) and evades detection using a range of techniques."
A "range of techniques" includes things like rootkits.
>No rootkits,
The attackers did use stealthy persistence techniques often called 'rootkits".
"the SeaDaddy implant developed in Python and compiled with py2exe and another Powershell backdoor with persistence accomplished via Windows Management Instrumentation (WMI) system,[..] The Powershell backdoor is ingenious in its simplicity and power" [0]
>no 0 days
The same group used six 0-days in 2015. Either they didn't need to use them in this attack or they used them and deleted the evidence. Senit is APT28 see quote below:
"One of the striking characteristics of the Sednit group is its ability to come up with brand-new 0-day vulnerabilities regularly. In 2015, the group exploited no fewer than six 0-day vulnerabilities" [1]
>yet it was the most routine, simple attack conceivable.
The attack involved multiple pieces of custom written software and carefully researched spearfishing, the attackers spent time and effort to hide their tracks, maintain persistence and exfil data without detection. This level of effort and time does not qualify as routine, some intelligence agencies can't even write their own RATs.
[0]: https://www.crowdstrike.com/blog/bears-midst-intrusion-democ...
[1]: http://www.welivesecurity.com/wp-content/uploads/2016/10/ese...
Also, the WMI think they describe doesn't look like rootkit, more like cron analogue for Windows. I.e. on Unix it would be like installing a command inside crontab. That's not what is usually called a rootkit - a tool that is designed to conceals its presence (and other tools presence) from regular OS tools.
Most breaches begin with spear phishing, commodity exploits, a leaked key, or some other obvious or preventable detail. However, this is almost never the “sophisticated” aspect of a breach worth talking about. It’s easy to point at an embarrassing vector and dismiss the rest of an attack. Thus, do not judge an adversary by the vector they’ve chosen.
An adversary may show you what “sophistication” means after advancing from their beachhead."
* https://medium.com/starting-up-security/learning-from-a-year...
Everything I've read indicates the bulk of work was done by Powershell scripts, along with a backdoor process running in the open. If you told me that the backdoor was a kernel level rootkit or something similar then I could get onboard, but as it stands I don't think the attack's complexity is a solid argument for "Russia did it"
Sure, that's obviously true in general, but given the current absence of evidence of "sophistication," there is no reason to assume its presence.
With computer crime it's especially obvious because most journalists don't know enough to understand what's hard and what's not, so they take the word of law enforcement, and law enforcement has big motivation to make it sound as bad as possible, since it enhances their significance and their success for catching one. "I've caught a sophisticated hacker" sounds better than "I've found a 13-year old kid that sent someone an email saying 'give me your password' and the poor shmoe was silly enough to do just that".
So there won't be a lot of reports about catching unsophisticated hackers. Usually it's always "highly sophisticated" ones.
OTOH, I think the actual (claimed) proof was using of certain bit.ly account etc. not sophistication per se.
Also, it looks like there were at least 3 attacks on the DNC, and phishing was only involved in one. Maybe the whitepapers talked about the other ones.
https://wikileaks.org/podesta-emails/emailid/34899
This is the stats page for the bit.ly phishing link from that email showing two clicks in the right time frame:
It's not rocket science to dump the emails out of a Gmail account:
https://support.google.com/accounts/answer/3024190?hl=en
But the Podesta leaks aren't the same as the DNC leaks, which Wikileaks has long claimed came from an insider who was upset by their treatment of Bernie. It's also interesting to note that even if the DNC was hacked, that doesn't actually prove where the information given to Wikileaks came from.
Given how careless they are in other regards, I have to think that any insider that wants it can get their data. Just read the PDF on this email to see how Colin Powell & Hillary Clinton treat OPSEC: https://wikileaks.org/clinton-emails/emailid/30324
"When I asked why not they gave me all kinds of nonsense about how they gave out signals that could be read by spies, etc. Same reason they tried to keep mobile phones out of the suite. I had numerous meetings with them. We even opened one up for them to try to explain to me why it was more dangerous than say, a remote control for one of the many tvs in the suite. Or something embedded in my shoe heel. They never satisfied me and NSA/CIA wouldn't back off. So, we just went about our business and stopped asking. I had an ancient version of a PDA and used it. In general, the suite was so sealed that it is hard to get signals in or out wirelessly."
Also, the DNC has long been planning to reach for the Putin angle:
"Best approach is to slaughter Donald for his bromance with Putin, but not go too far betting on Putin re Syria. Brent"
Sure, HDD firmware hacks are cool, but in terms of R&D time far less efficient if you're willing to spam attempts to get in the front door. And I'd say they chose the appropriate level of sophistication given the success of the penetration.
The DNC isn't exactly an air-gapped Iranian nuclear centrifuge.
edit: seeing some reports they used "sophisticated" SQL injection... okay...I mean for a lay person it seems sophisticated, sure. But for anyone in the industry it's one of the oldest and easiest tricks in the book.
I really suspect news sources are knowingly exaggerating about the sophistication of this "hack" in order to make up-play Russia's role and downplay the DNC's culpability.
The Hackers drove a truck.
Russians drive trucks.
The Russians did the hacking.
While its insulting that our government would try to pass off this drivel as "evidence", I'm much more dismayed that so many of my fellow Americans will uncritically accept it as such.
So, right now, let's assume it was a Russian spy agency that hacked the DNC. They're sitting there, thinking, "wow, these FBI folks somehow figured out it was us.". Then after reading this paper, "hmm, that's not a whole lot of evidence, they must have some proof that they're hiding. They must have a mole in our office. Find him, now."
But who knows, maybe they are too busy spying on hundreds of millions of Regular Joes to watch out for all of the Russian attacks.
This is an analysis report with information (including most significantly the IOCs in the accompanying files), some of which is previously released and some of which is newly declassified, for use in defending against and forensically identifying attacks by the threat groups identified.
No one is passing this off as evidence of anything.
1. Hackers drove a custom built tank that has Moscow factory markings.
2. Similar versions of the tank were used in other campaigns attributed to Russian intelligence.
3. Crew in the tank has been associated with Russian intelligence operations going back ten years.
4. The tank left from a building known to be associated with Russian intelligence hacking campaign.
Thus, the hackers probably take orders from Russian intelligence.
Previous JARs have not attributed malicious cyber activity to specific
countries or threat actors. However, public attribution of these activities
to RIS is supported by technical indicators from the U.S. Intelligence
Community, DHS, FBI, the private sector, and other entities.
The report then discusses when the attackers did and mitigation strategies.That's the point, its just another completely baseless, unsubstantiated accusation. This report contains nothing that suggests that the Russians were any more likely to be the source of the hack then countless other entities. The problem is that these baseless claims are being presented as evidence and being consumed uncritically as such. Take for example the headline in PcMag:
>Hacking Evidence in Hand, Obama Sanctions Russia
http://www.pcmag.com/news/350675/hacking-evidence-in-hand-ob...
The accusation that people who find this credible are uncritical is unfounded and insulting. The question is not "would someone in a government agency lie for political reasons," it is "would this many people, in a bunch of different agencies that have a history of lying to and competing with and distrusting each other, all sign on to the same lie, publicly, even though it's almost certain to be disproven in a few months."
Meanwhile, here's the alternative theory:
1. Some Russian intelligence agency hacked the DNC's email servers
2. They left behind evidence
3. The FBI/NSA//DHS/etc found that evidence
4. They classified it and aren't going to put it in a press release
None of those are the least bit hard to believe, and they are collectively WAY easier to swallow than this hypothetical vast, high-level conspiracy to discredit Trump or whatever it's supposed to be for.
1. The DNC and their members are generally ignorant of good security policy and had an easily hacked system.
2. Some Russian intelligence agency hacked the DNC's email servers.
3. A bunch of other people/hackers/groups hacked the DNC's email servers, as it was "left out in the open", so to speak, and was a trivial target..
4. One group at least used trivial methods to do so and left behind evidence.
5. The FBI/NSA//DHS/etc found that evidence.
6. One of these hackers passed information to WikiLeaks. WikiLeaks has denied that it was Russians who did this.
7. The FBI/CIA claim that the Russians hacked the DNC servers.
8. The press and political opportunists jump to the conclusion that it was the Russians who released this information to Wikileaks.
9. The FBI/CIA classified what they found and aren't going to put it in a press release.
"The evidence there is not strong" https://www.c-span.org/video/?c4631568/clapper-wikileaks-con...
Also, you think it's a conspiracy theory that the DNC would attack Trump? So... you don't seriously think that the RNC's media allies attacked Clinton? That's, uhh, just not how it works.
The DNC has very good reasons to deflect this one. They funneled all the state-level money to Hillary and made their losses worse. They helped promote Trump and the other "pied piper" candidates in the media early on. Their token opponent, Sanders, got far more enthusiasm than Hillary and both candidates under-performed past ones, with Trump edging her out based on smaller losses and working the electoral college to his advantage--a failure reminiscent of how Obama beat Hillary by focusing on delegates. They have to pin the failure on someone else for their own survival. If the average voter saw the actual emails and realized just how much the DNC orchestrated just to shoot itself in the foot here, they'd demand their replacement.
You're being foolish if you trust a word the FBI says without solid evidence.
And yes, claiming that's all the evidence that exists is complete bullshit.
You've got access to all of his tax returns, and all the sealed details of his divorces, and all of his medical records, and all of his business records. You've got a whole squad of spies working for you, you can fabricate evidence, whatever you want. And this is a guy a guy who has outstanding loans from Russian banks in the hundreds of millions of dollars, and who has cheated on at least two of his wives. And this is what you go with? Accuse someone unrelated to him of hacking in to someone unrelated to him? That's your big plot? And you wait to do it until after the election? Via press release?
Man--I like the way you think, I really do, but this is not "easy". Technical simplicity and social ease are vastly different, and it's usually the humans who are getting hacked.
That's why it's a social problem, not a technical problem, yeah?
I suspect what needs to happen is each branch of government needs to have infosec people assigned to it that sets standards and policies around this stuff. If they don't comply there have to be consequences.
That is an impressively dismissive statement.
TLS client auth is really pretty much a dead letter: it's not easy at all. The biggest impediment for widespread TLS client auth seems to be that CA's are involved.
U2F might help.. and widespread MFA/2FA. Maybe we shouldn't be just tossing out passwords just yet, but just pushing for full MFA support for mission critical apps.
Windows 8, 8.1, and 10 don't allow it either. SmartScreen will block unsigned executables by default[0]. Enterprise customers should be using AppLocker which does a lot of what SmartScreen does, but with more flexibility and control.
The issue arises when [bad] System Administrators disable SmartScreen because it is a "hassle" and don't deploy AppLocker in its place. This effectively sends their users back to a Windows 7 level of security.
If Microsoft forced either SmartScreen OR AppLocker, then we'd have people on here screaming about freedom, Microsoft is evil, "Embrace, extend and extinguish," year of the Linux desktop, and so on. This is the best they can without treating System Admins like babies (even when they're going to use that power for "evil").
[0] https://blogs.msdn.microsoft.com/ie/2012/08/14/microsoft-sma...
https://www.zscaler.com/blogs/research/yet-another-signed-ma...
Fortunately because of how signing works it makes malware that is signed incredibly easy to detect, since by the very nature of the signature the malware's contents cannot be altered.
Plus signing is costly, and that within itself can make malware attacks uneconomical. It also makes getting a signature rather complex since you need fake identification and payment to avoid being carted off by the authorities.
Overall signing requirements are a huge net win for the "good guys." And while it isn't a hard security boundary, it is a damn effective one in the real world.
Meh, just add a button or clickable link that allows the sysadmin to swiftly disable such warnings. Just make sure to put a scary-enough disclaimer that doing so can expose you to very bad, malicious stuff, from ill-intentioned people. It might get more application publishers to implement signing, just as Vista and 7 got rid of the "run everything as administrator" mentality through the use of UAC warnings.
> If Microsoft forced either SmartScreen OR AppLocker, then we'd have people on here screaming about freedom, Microsoft is evil,
There could be a separate UI for installing software or even a package manager. Microsoft doens't want to change anything because it is still the leader and earns huge profits.
System admins are going out of their way to disable default protections.
Also Windows 10 has a package manager and app store.
If you read that regexp carefully, it's more complicated than that. It doesn't match base64_decode, but it would match `='base'.(32*2).'_de'.'code'`. That's obfuscation in the payload, and in another comment I linked to some code that uses exactly this unusual (and pointless) obfuscation [1]
For what it's worth Yara is not a firewall. It's essentially an intelligent grep for incident response. An IOC is an indicator of compromise, so it's after the fact not a preventative measure.
A well hardened MAC system, which requires no effective user intervention, can limit access of arbitrary programs to a minimal set of files and devices to stop bad actors from actually getting anything without the user having to modify the MAC policy.
To save you a search it's here: https://www.themooltipass.com/
Setup goes like this:
1. User buys device which comes with keycards.
2. User selects pin code for their device
Usage goes like this: 1. User attempts to login to site
2. Browser plugin requests login details from device
3. User is prompted for chip & pin from the device
4. User puts card into device and inputs pin
5. User clicks a button physically to aprove transaction
6. If correct data is sent to the browser for login
7. Subsiquent chip and pin signins aren't needed for X timeout
The interaction is more 'tedious' for some people but it's not meant for the people who are concerned with typing in a 4-digit pin. It's meant for people who would otherwise have to remember 20 digit alpha-num-sym passwords for 30 different accounts for which this is much easier and safer to do. It's also something people know how to do. If you've gone to a super market you are now prompted for Chip & Pin. People are already motivated to learn how this works (want your groceries for the week? Use the chip and pin!).On the other hand, the average person doesn't need code words to get access to a protected resource. Bar "special organizations" I'd say there are very few people who are trained natrually into the concept of passwords. It's simple but it isn't done nearly enough for everyone to understand it which is in stark contrast when compaired to using a credit card with a pin code. Also, they could use similar or even the same pin code as their bank pin if they aren't concerned about security.
https://news.ycombinator.com/item?id=13280068
Look again, they handed you more than enough information.
>The report also contains a pretty useless firewall rule named "PAS TOOL PHP WEB KIT FOUND" that can be used to search malware in PHP files. It is interesting that they have replaced digits in 'base64_decode' function name with regexp as if there were any other similar functions.
root@:~/super_secret_govt_malware_samples# grep * -e bas|tail -n2
D285115E97C02063836F1CF8F91669C114052727C39BF4BD3C062AD5B3509E38:<?php $_f___f='base'.(32*2).'_de'.'code';$_f___f=$_f___f(str_replace("\n", '', 'FeBvsTxs6EyYpYb/gJ9ckCbVgYYH9D56SKL+O6KdPjkDV91JgHr1g8WRH7/uYOda3hUgVLO064UXPF5K
DA9F2804B16B369156E1B629AD3D2AAC79326B94284E43C7B8355F3DB71912B8:<?php $l___l_='base'.(32*2).'_de'.'code';$l___l_=$l___l_(str_replace("\n", '', 'QbO8tTv2NBoj4kUpujJlanEQeWDR+lrAJa6TWEnQEGF/uIiq3/G4ox/YCpaqsd6+QRNaT2pbpyBIDnlo
root@:~/super_secret_govt_malware_samples#
Why is everyone trying so desperately to attack and discredit this report?Because half of the US voting population are heavily invested in it being false.
So if you judge it by whether it "makes the case" against Russia, it will be lacking. We don't need 100 comments pointing that out.
1. Released the same day as the announcement of formal Russian Sanctions
2. Released the same day US made 35 "diplomats" (aka. known Human Intelligence Officers) Persona Non Grata. Which is a big deal.
This type of document is not intended to "make the case" because we don't do that.
Making a case for something by definition, would reveal sources and methods which we highly guard. It also opens the administration up for scrutiny because there are many pieces which cannot be revealed because of classification - so it's impossibly to fully "make a case."
This type of report does however hint suggestively and point in the direction of support. They just let you put the pieces together.
In fact they don't have to put anything out and most people wouldn't even know to ask (outside of possibly FOIA, which won't go far in these cases).
This document says the attack would've failed if the DNC had watched out for SQL injection and if DNC staffers had not fallen for a phishing scheme. We're supposed to believe only a nation-state could've conducted these attacks? This is "Baby's First Hack" level stuff.
This only further proves the government's propaganda policy for dealing with prominent cybersecurity breaches: blame it all on a foreign boogieman, as they did in the case of the Sony leak, so that the public doesn't catch on to just how very vulnerable all their electronic data is to practically anyone with the inclination to attempt to steal it.
No they wouldn't, and you are one of the people here who I would say should very well know it. :p
The DNC screwed up, but the overwhelming majority of everybody else screws up to this level or worse on the regular.
The first page states-
>This JAR provides technical indicators related to many of these operations, recommended mitigations, suggested actions to take in response to the indicators provided, and information on how to report such incidents to the U.S. Government.
>As part of the administration’s response, the FBI and Homeland Security Department also released a report with technical evidence intended to prove Russia’s military and civilian intelligence services were behind the hacking and to expose some of their most sensitive hacking infrastructure.
There are only two possible explanations for that:
1) A massive conspiracy in which the leaders of practically the entirety of the US military/intelligence community are willing to go on record with a hoax that will easily be unraveled by the incoming administration in a few months
2) There is clear and damning evidence that Russia did it, but it's classified
Quite predictable, since they also considered the wild accusations of various politicians of a high level Russian conspiracy to be evidence.
Most of this report is pretty simple social engineering tactics/table stakes.
You mean the point of the persons who wrote it? Probably not.
But the intent of those who decided to release it today? It most likely was. If so many HN commenters--sophisticated computer users and people with cognitive abilities way above average--feel like it doesn't go without saying, how many CNN or Fox News will realise it doesn't make the case against Russian?
They'll just remember that some documents were released by some US intel agencies, proving that the Russians did "it" (without even a clear idea of what "it" might be), while the US govt punished them. That's good enough for people who saw no problem with going to war against Iraq because of 9/11.
What worries me is that all of this Russian hackers + Fake News agitprop is that it looks like a perfect prelude to justify Internet censorship in Western democracies. When Internet allowed Obama to "steal" the Democratic party from Clinton in 2008, it was OK: maybe a bit embarrassing, but his policies weren't really that different from hers. But in 2016, with Sanders almost stealing the party again, and Trump taking the GOP then the general election by storm, politicians and their sponsors realised they didn't effectively influence voters through mainstream media any more. They've finally realised how scared they should be of Internet, and they'll want to "civilise" it, i.e. make it as controllable as billionaire-owned TV channels and newspaper. I hope they'll fail, but some of them will try to.
> Previous JARs have not attributed malicious cyber activity to specific countries or threat actors. However, public attribution of these activities to RIS is supported by technical indicators from the U.S. Intelligence Community, DHS, FBI, the private sector, and other entities. This determination expands upon the Joint Statement released October 7, 2016, from the Department of Homeland Security and the Director of National Intelligence on Election Security.
Yet it doesn't actually make a case for Russian Malicious Cyber Activity. People are pointing out the obvious spin on this especially since it's extremely light on technical details or a reason to exist other than propaganda. Reasonable companies don't need to be taught about phishing attacks.
Edit: changed "zero claims" to "zero credible claims"
Podesta and high-ranking Dems have leveled this very charge.
The extent of the DKIM signatures all being true makes this very unlikely.
RSA1024 and SHA-1 can be beaten, but not easily and not in this volume.
It is not E2E from the people authoring the e-mails, so the server maintainer (often Google) could be forging and signing e-mails.
However, again, doing it the volume it would have had to be done is not likely.
The DNC has backed off from the forgery accusations. Besides the asinine nature of the accusations making them look bad, such accusations weaken their grand thesis: Russia hacked them. If they open up the possibility that most or all of the e-mails could have been fabricated whole cloth, then it undermines the argument that Putin pulled off an ingenuous heist of tens of thousands of e-mails.
http://www.dailymail.co.uk/news/article-3835460/Now-Podesta-...
if the emails are fake, how could a password from the emails dump be used to login into his twitter page.
The problem isn't the truth of the claims, it's that the illicitly gained information was strategically released to disrupt one specific campaign, effectively destabilizing our election. Much like Comey's last minute email announcement revealed nothing new, yet allowed the email narrative to renew its currency in the last days of the campaign.
Imagine if the IRS "accidentally" released Trump's tax returns or been hacked to allow this data to come out. Or if the alleged tapes went public of Donald Trump making openly racist remarks on his TV shows outtakes. Even if these simply revealed things many people already expect to be true, it would have had mesurable impact on the election.
The NYT did publish Trump's stolen tax return, and were quite self-congratulatory about having done so...
> Or if the alleged tapes went public of Donald Trump making openly racist remarks on his TV shows outtakes.
...and, the stories about the hacked material were outnumbered probably 100-1 by the simultaneous coverage of the stolen backstage Access Hollywood tape (which was doubly illegal because California is a "two-party consent" state).
Which is not to say either of those things weren't newsworthy, or shouldn't have been reported on, but: it's completely, blatantly hypocritical to say that illegally-obtained information should not be allowed to affect the election when it hurts one candidate, but is fair game to use to hurt the other.
Private domestic entities are subject to lawsuits, if the injured party believes their rights have been violated. The recourse is clear.
If it's the US government getting directly involved (e.g. IRS leak), that's a huge scandal. That's why Watergate led to the resignation of a president.
The only way we can hold foreign governments accountable is via our own government. So sanctions would seem to be completely appropriate to me.
Since Trump was mic'd up on the bus (they were going to film a segment), I think there is a case to be made that he couldn't realistically make the case he didn't know he was being recorded or could be recorded. I think it'd be a hard sell that this was an illegally recorded conversation.
His ex-wife had copies of those documents and it's widely suspected that she was the one to leak them.
Unflattering leaks are part and parcel of Presidential campaigns, on both sides. It's why candidates get "vetted", meaning digging up as much dirt as possible in advance to see if it can be dealt with or if it disqualifies the candidate.
And if you want to focus on foreign (illegal) involvement in U.S. elections, look no further than the alleged Chinese involvement in the 1996 presidential election https://en.wikipedia.org/wiki/1996_United_States_campaign_fi...
My point being, this is almost entirely political. It changes no ones mind.
tl;dr: YARA rules are a method of categorizing malware based on their characteristics. So the PDF here released a YARA rule to determine a specific piece of malware used in the hack (it's not clear to me what it identifies, other than a PHP script).
For convenience, here's the YARA rule presented in the PDF formatted to be more readable:
rule PAS_TOOL_PHP_WEB_KIT {
meta:
description = "PAS TOOL PHP WEB KIT FOUND"
strings:
$php = "<?php"
$base64decode = /\='base'\.\(\d+\*\d+\)\.'_de'\.'code'/
$strreplace = "(str_replace("
$md5 = ".substr(md5(strrev("
$gzinflate = "gzinflate"
$cookie = "_COOKIE"
$isset = "isset"
condition:
(filesize > 20KB and filesize < 22KB) and
#cookie == 2 and
#isset == 3 and
all of them
}[1] https://securityintelligence.com/signature-based-detection-w...
[2] http://yara.readthedocs.io/en/v3.5.0/writingrules.html
EDIT: formatting
Note how the base64decode regex doesn't actually match base64_decode, but it matches
$l___l_='base'.(32*2).'_de'.'code';
which is the first statement in the github code I found. <?php
='base'.(16*4).'_de'.'code'
(str_replace(
.substr(md5(strrev(
gzinflate
_COOKIE _COOKIE
isset isset isset
(additional text, such that the total filesize is between 20kb and 22kb)
Basically, in the filesize must be between 20bk and 22kb, all of the defined strings must be found, and the cookie and isset strings must occur exactly 2 and 3 times respectively.It seems obfuscated code. The $base64decode string seems a regular expression to generate the PHP `base64_decode()` function.
At some point the script would read a base64 string, which would be an encoded PHP script retrieved from remote or included in the script. The output is then executed through the `eval()` function. Like in this example: http://ideone.com/awhqOg
And they replaced digits in 'base64_decode' with regexp as if there were other similar functions.
While we technical folks would love to see all the details that's not how intelligence works. Some things have to be secret even though these days everything becomes a conspiracy and a political controversy and a tweet storm.
That said I doubt anyone in either party committee had any idea how security works; even worse is that much of the US government is (and will be) lead by political benefactors with an axe to grind and not people with a real clue about modern security either so expect nothing much different in the future until someone hacks the nuclear "football".
IMO it's crazy not to question at least their competence if not also their motive.
Well they plan on releasing the malware samples and evidence of the hack, so I'm not sure what you mean here...
This isn't the enigma in war time. It's not even a denied operation like Stuxnet (which was also had malware samples found in the wild and plenty of details on how it was spread and worked). It's standard nation state malware from a foreign adversary and the phishing email was already released from the Podesta hack via Wikileaks.
The only question is how they connected the public leaks to Russia. Which most people doubt they even have. But that detail won't stop the press from believing it was one and the same. Even though any number of people could have accessed it.
But otherwise simply connecting the hack to Russia and the hack itself is hardly a mystery or interesting in itself. You're very much overselling that which I'll just attribute to not knowing much about infosec.
From NYTimes:
>> The samples of malware were in what the Obama administration called a “joint analytic report” from the F.B.I. and the Department of Homeland Security that was based in part on intelligence gathered by the National Security Agency. A more detailed report on the intelligence, ordered by President Obama, will be published in the next three weeks, though much of the detail — especially evidence collected from “implants” in Russian computer systems, tapped conversations and spies — is expected to remain classified.
http://mobile.nytimes.com/2016/12/29/us/politics/russia-elec...
Obviously they won't release every detail, especially regarding implants in Russia, but they'll release more than just 'trust us'. They always do.
We know what nation state hacking looks like thanks to the leaks about the NSA. There would normally be things like custom hardware or TEMPEST like tools, not kiddie level phishing scams.
That's perfectly fair, so why can't they say "The Russians did it but we can't say why we know."? Instead we get "The Russians did it." and "Here is some evidence of the attack." This way, they are not directly saying it is evidence of the Russian attack, they just leave people to form that conclusion themselves. Pardon me if I'm a little suspicious at the "accidentally" confusing communication.
> That said I doubt anyone in either party committee had any idea how security works; even worse is that much of the US government is (and will be) lead by political benefactors with an axe to grind and not people with a real clue about modern security either so expect nothing much different in the future until someone hacks the nuclear "football".
Or the media. And yet, they know, with absolute certainty, despite no evidence or knowledge in the field, that the Russians are responsible for the attack.
Given the credibility of some three letter agency, it is reasonable that people who are technically adept or otherwise have doubt over this report. Even when you just look at the report without the credibility, it still lacks so much for anyone to pinpoint the acts to Russian state. While the report itself does not claim that, the media hype is otherwise.
Someone explain to me why this is such an issue?
There have been many proven hacks from many states that are far worse (the Chinese Fighter plane that looks almost identical to the F35 come to mind) than exposing the DNC's dirty laundry. No one is denying that the emails are real. This seems like some sort of distraction.
An elaborate surveillance/police state combined with a propaganda system is scary indeed, no matter which president or political party controls it.
I googled this term and all I got were conspiracy theory websites.
Here's the actual law: https://www.congress.gov/bill/114th-congress/senate-bill/327...
Actually, Donna Brazile, who is inexplicably still the current chair of the DNC, claimed the emails were falsified: https://youtu.be/P_WHsr07cbY?t=458
As an attack, though, it didn't rise to a major domestic political issue because there just isn't anything up for debate. It happened, it's clearly bad — where was our response lacking? Maybe it was lacking, but apparently our two parties don't disagree enough to make it an issue.
And that's the issue here. If both parties agreed that it's wrong for foreign governments to hack the DNC's e-mail and air their dirty laundry, there wouldn't be much public debate. But the President elect claims it didn't even happen, and that's making the stakes far larger than the issue itself.
It's like Elian Gonzales: how much does the event itself matter? Not that much. How much do the conflicting political forces arrayed around the event matter? A whole lot.
1. There is no proof that this happened
2. Who said they did not agree?
Plus in some people's minds a private defense contractor being "hacked" is more along the lines of industrial espionage instead of a major political party being "hacked" during an election. Even worse, certain news outlets reporting that the election itself(!) was hacked which is misleading and could make people think that voting machines were actually hacked by a foreign power instead of the PsyOps which allegedly took place.
https://oversight.house.gov/wp-content/uploads/2016/09/The-O...
Countries gather intelligence about each other all the time, the interesting part of the hacks surrounding the elections is that the information was made public in an attempt to influence the results. If you recall form the 2008 election both the Obama and McCain campaigns were hacked by China, but it was a conventional information gathering operation. It was in the news, but fell off quickly because nothing was released to try and influence the election.
Where? The FBI handled the investigation and didn't cite its sources.
https://www.fbi.gov/news/pressrel/press-releases/update-on-s...
> "While the need to protect sensitive sources and methods precludes us from sharing all of this information, our conclusion is based, in part, on the following"
That report does not specifically attribute the Sony hacks to a particular nation-state. It does demonstrate the hack was not the result of a disgruntled employee, but rather an APT group the report refers to as "The Lazarus Group."
In the interests of full disclosure, I worked with the people involved in that operation.
The good side is that at least it will probably be NATO interoperable!
You're maybe on the wrong website if you need someone to explain this to you.
Cue everyone recycling a set of 10 unique passwords among devices and/or writing passwords on Post-It notes on work computers at the office.
Only bit of truth in here was the phishing campaign. That could be anyone, however. This is barely more advanced than the Nigerian bank scam e-mails.
Yet the POTUS says it's a sign of the highest levels of Russian government.
We've already been fed lies about e-mails being altered (DKIM signatures disprove this) and now this PDF ignores the insider element in the DNC/Wasserman-Schultz leaks.
What a joke. NIST, NSA, FBI, CIA et alia should be discredited almost entirely at this point.
NGOs, private industry and the US government at most levels there has been a movement away from password length limits and password expiration and SMS as a second factor. (Even OTP and hashes may be replaced by U2F keys someday.)
Then we get this recommendation for password expirations.
Two steps forward, one back -- as always.
Over the next 24 hours, it will transform a huge number of people into experts on intelligence reporting requirements, hacking, sources and methods, and diplomacy.
Because to me the purpose of your comment is to drag down other comments, even yet unmade ones, into the mud. Invalidating everyone's opinion on this subject except 0.1% of the population (namely very specific experts). Even politicians or professional political commentators wouldn't meet your high bar.
And to the people who do feel like the bar should be set at "only experts are allowed an opinion" then why stop on this issue? Why not branch it out to every major political issue? Plus seemingly being well read on a topic is no longer enough to have an informed opinion, qualifications are the only metric by which we can measure an argument rather than the qualities of the argument itself.
My point is that this is a dangerous argument that only seeks to result in the silence of commentators. It only detracts rather than adds to the discussion's value.
The show is playing now on the usual blogs, so rest easy. If I had been making an oblique argument attempting to shut people up, I failed rather miserably.
A quick search reveals that it happens to exactly match [1] (if you fix a few obvious bugs where the github code uses $COOKIE instead of $_COOKIE, or produces base64decode instead of base64_decode. The attackers probably fixed that in production). Apart from the exact combination of three `isset` and two `_COOKIE`, that code starts with the unusual sequence `<?php $l___l_='base'.(32*2).'de'.'code';` which happens to be matched by the (also very unusual) regex from the report. It also ticks all other boxes from the provided signature.
I just found that within five minutes by searching github. It seems like an encrypted payload that can be executed by visiting the php page while having the password in a POST parameter or in a Cookie.
I'm not an expert, but the encryption looks very simple. Maybe somebody feels up to the challenge to try some statistical analysis or similar on it?
The code has a payload (probably a web shell) encrypted with a password that should be sent via a cookie or a variable in the POST request body. The encryption has some serious weaknesses.
The @masrermike's comment https://news.ycombinator.com/item?id=13281312 has a link to the tool that could be used to encrypt the payload.
In case if anyone is interested I can post a formatted code (the payload is still encrypted): http://pastebin.com/sVLsGTub
~ grep IPV4 JAR-16-20296.csv|awk -F ',' '{print $1}'|sed 's/[][]//g'|sort -u|grep -f exits -c
191
~ grep IPV4 JAR-16-20296.csv|awk -F ',' '{print $1}'|sed 's/[][]//g'|sort -u|wc -l
876
At least 191 of the IOC IPs are (probably random) Tor exit nodes :) The actual number may very well be higher, I just grabbed current exit node list from https://check.torproject.org/exit-addressesHere's the PHP backdoor the YARA rule is for http://sprunge.us/ReFg I'll probably put up the rest of the samples in a sec.
Edit: Here, I uploaded most of the samples listed in the csv http://www.filedropper.com/samples_5
Edit 2: The obfuscation used in the russian PHP shells looked awfully familiar, I think the shell they're using could very well be this one http://profexer.name/pas/download.php originally shared on a .ru hacker forum.
I have seen similar obfusaction many times before. Generally most PHP backdoors look like eval($_POST['something']) and here eval is replaced with create_function (by the way I know several other functions that can be used instead of eval). This method of obfuscation (eval + gzip/base64_decode and other functions) is also sometimes used in legitimate scripts.
If you look at it carefully you'll very quickly realize that you haven't. This isn't at all like your typical base64 silliness, and it's certainly very uncommon.
This actually uses a cookie to decrypt the encrypted shell before executing it. Pretty obvious, but very few things actually do it.
Maybe this code is encrypted using some generic obfuscation tool and the file at github matches the rule at report because their payload was encrypted with the same tool?
I'll also add some thoughts under @wongarsu's comment.
https://www.fireeye.com/blog/threat-research/2015/12/uncover...
Its been taught in my security class.
65[.]55[.]252[.]43,IPV4ADDR,,IP_WATCHLIST,C2,,TLP:WHITE,This IP address is located in the United States.
https://virustotal.com/en/ip-address/65.55.252.43/informatio...
They mention a phishing attack which took place after the election, but don't give any further details.
Here is the only valuable part:
" rule PAS_TOOL_PHP_WEB_KIT { meta: description = "PAS TOOL PHP WEB KIT FOUND" strings: $php = "<?php" $base64decode = /\='base'\.\(\d+\*\d+\)\.'_de'\.'code'/ $strreplace = "(str_replace(" $md5 = ".substr(md5(strrev(" $gzinflate = "gzinflate" $cookie = "_COOKIE" $isset = "isset" condition: (filesize > 20KB and filesize < 22KB) and #cookie == 2 and #isset == 3 and all of them } "
If my boss drops a request on me to write a report on the "technical details regarding the tools and infrastructure used by the X to do Y", I don't spend time in the report explaining that X did Y. That's not the point of the report I was asked to make. That's a different report.
[0] https://www.us-cert.gov/security-publications/GRIZZLY-STEPPE... This would probably be a better link for the OP than the PDF it links.
Unless you can answer that, yours doesn't really make much sense.
It's just a list of IOCs. IPs, file hashes, urls, a few traffic samples.
>presumably it's more than IP address seeing as how trivial proxying is.
Per wikileaks:
> "Starting on Friday 22 July 2016 at 10:30am EDT, WikiLeaks released over 2 publications 44,053 emails and 17,761 attachments from the top of the US Democratic National Committee -- part one of our new Hillary Leaks series. The leaks come from the accounts of seven key figures in the DNC: Communications Director Luis Miranda (10520 emails), National Finance Director Jordon Kaplan (3799 emails), Finance Chief of Staff Scott Comer (3095 emails), Finanace Director of Data & Strategic Initiatives Daniel Parrish (1742 emails), Finance Director Allen Zachary (1611 emails), Senior Advisor Andrew Wright (938 emails) and Northern California Finance Director Robert (Erik) Stowe (751 emails)."
Per Craig Murray:
"Craig Murray, former British ambassador to Uzbekistan and a close associate of Wikileaks founder Julian Assange, told Dailymail.com that he flew to Washington, D.C. for a clandestine hand-off with one of the email sources in September."
http://www.dailymail.co.uk/news/article-4034038/Ex-British-a...
Perhaps Craig Murray meant September 2015, or perhaps the Daily Mail wrote the wrong thing down. If neither of these is true, there's a serious discrepancy in these claims. Lacking such an explanation, the reasonable conclusion here given the date discrepancy would be that either Ambassador Murray or the Daily Mail is lying about the dates.
The advice on avoiding similar hacks in the future is a grab bag. Near the end it encourages using /etc/shadow on POSIX systems. I installed Linux on my personal computer in 1999. Since then, I've installed several Linux distributions, FreeBSD, OpenBSD, Plan 9, Inferno, etc. I can't remember any installation offering to store password hashes in /etc/passwd. Some of the advice is better, but not all of it is. I'm honestly disappointed. Perhaps this is a wake-up to somebody, but I would hope Sony's hack would have already served that purpose.
Hope the main report due in 3 weeks has some substance.
I think I might have missed it, but how did they conclude that it was 'APT28' ?
> APT28 is known for leveraging domains that closely mimic those of targeted organizations and tricking potential victims into entering legitimate credentials. APT28 actors relied heavily on shortened URLs in their spearphishing email campaigns.
Aren't these standard phishing 101 techniques. What makes them specific to 'APT28'. This 'report' looks like someone googled 'phishing 101' and 'web security 101' and copy pasted bunch of stuff from wikipedia.
They are standard techniques. It doesn't say they are unique. Just that this hacker relies on these specific standard techniques as opposed to other ones.
Yeah, just like a weapon of mass destruction in Iraq. We can't tell how we got this information, but we know for sure. Then few years later it turns out there is no WMD found. Ooops. Sorry.
Give me a reason to trust them again?
This is the whole problem we're dealing with right now - people just decide they do or do not trust something. Don't agree with a fact check? Just call it bogus and move on, even though it might be a 50 point case they make why bother finding a flaw in their reasoning and using that to refute their conclusion when you can just be a cynic and shrug it off. Don't agree with climate change? Just pick the 1 totally debunked study that supports your case and ignore the 1000 that don't that haven't been debunked.
So I ask, in the analyses that have come out (not just this one), what do you disagree with? As far back as June crowdstrike released a report [1], I assume you went through it in detail and can point to flaws in its reasoning as well?
[1] https://www.crowdstrike.com/blog/bears-midst-intrusion-democ...
First, the people making the DNC hack report are not the same as the analysts who worked on Iraq. The IC is not a monolith.
Second, the Bush White House saw the intelligence they wanted to see.
Third, burning sources and methods is a very real concern in intelligence gathering. That reality can't be ignored no matter how much you want information to be free and open.
You don't have to trust the IC. In fact you probably shouldn't take what they say at face value. But there are very good reasons for why they operate the way they do.
There is not a good reason to do so. The trust has been broken and we should consider them corrupt if not overtly adversarial to the democratic process.
No officials took responsibility for the excesses revealed by Snowden, or promised any sort of remediation. Such smugness in the abuse of power is a very scary thing.
http://www.nytimes.com/interactive/2014/10/14/world/middleea...
The best and only thing the average citizen can really do is try to put people in office who can intelligently parse classified information and evidence from intelligence agencies.
you are supposed to elect people who you trust to make these decisions. we don't have direct democracy.
ETA: Also, the bit.ly URLs used in the phishing attacks indicated sharing of resources with other APT28 hacks.
http://motherboard.vice.com/read/how-hackers-broke-into-john...
For reference, this is the Podesta phishing email: https://wikileaks.org/podesta-emails/emailid/34899
And this is the stats page for the bit.ly link in that email: https://bitly.com/1PibSU0+
Who in US Government?
What information was leaked?
From: Eryn Sepp <eryn.sepp@gmail.com> To: john.podesta@gmail.com
Though CAP is still having issues with my email and computer, yours is good to go.=20
jpodesta
p@ssw0rd
It looks like it was a temporary password assigned by the sys admin (or tech savvy friend).Also, It is not clear how this was hacked since it seems a gmail to gmail communication.
http://www2.fireeye.com/rs/fireye/images/rpt-apt28.pdf
https://www2.fireeye.com/rs/848-DID-242/images/rpt-apt29-hammertoss.pdf
The evidence is circumstantial, but there is so much of it that I think you can confidently say that Russia is behind it. For example, compile times pointing towards office workers in Moscow, Russian language settings and so on.Read the reports and make up your own minds!
I can excuse (sort of) clicking on infected files. Honestly, how many of us are checking unsigned e-mails' headers in the source code? At the very least we should confirm if the displayed From and Reply-to match the originating server.
But we usually don't. And we may be on webmail(!) on someone else's computer. That PDF could have malicious software.
*
Clicking on a suspicious link is one thing. Doing something on that linked site is worse. (instead of re-typing the URL -- I hate internationalized URL domains for making this hard.)
Not checking the URL or even looking for the green padlock or using common sense and then typing in your password??? No excuse.
Would a bank ever send you a postcard asking you write down your PIN and bank balance on the postcard and send it back to them? No. Of course not. For starters, they don't need that information.
Clicking on phishing links and entering personal information is stupidity on a whole new level.
Why spend weeks/months searching for 0-days and hoping they will remain viable when you can spin up a fake login page and a bit.ly, find the people to target and send the targeted emails in a couple of days, max?
You can argue that the report technically wasn't meant as evidence of Russian intervention, but the administration certainly doesn't mind people thinking that it is.
They're using backdoored hardware & TEMPEST, not pitiful phishing scams.
"5. Input Validation - Input validation is a method of sanitizing untrusted user input provided by users of a web application, and may prevent many types of web application security flaws, such as SQLi, XSS, and command injection."
https://en.wikipedia.org/wiki/Prepared_statement
https://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_SheetFolks, now is the time that we need to make it clear that posturing and PR statements do not constitute valid, independently verifiable evidence. As a citizen of the United States, I am beyond terrified that our government has made public statements, buttressed by newspaper articles supported by nothing but anonymous sources[1], vilifying Russia for a nation-state-level cyberattack. The support for such claims, as presented, is the "sophistication" of the attack, which is not evidenced here (phishing is not a particularly sophisticated means of entry). At best, this is a mistake, and at worst, it wreaks of anti-Russia propaganda that will only serve to escalate tensions between the two countries. Every single person who absorbs a report like this without seeking supporting evidence (note that this report immediately starts by claiming Russia's involvement, and never provides support) is, to some extent, culpable in a hypothetical reality where the US Government is blatantly wrong about this one.
There's only one thing we can do at this point: File Freedom of Information requests. The fine folks at Muckrock[2] make this absurdly easy. Send requests to the CIA and FBI -- hold them accountable to their statements, which have to date been unsupported, that Russia as a nation-state entity was behind anything.
1: http://www.nytimes.com/2016/12/09/us/obama-russia-election-h... 2: https://www.muckrock.com
Here is technical analysis of one of the malware used. http://researchcenter.paloaltonetworks.com/2015/07/unit-42-t...
Why does everyone thinks that only Russians can write such a malware, that too in python!
Also, does it dawns on anyone that anyone can actually take this malware up and reverse engineer it and repurpose it. All it takes is changing one JSON blob embedded in the code to point to your own servers for CNC, use your own AES IV/Key.
Also, I find it funny that they use embedded time stamps and resource locales as a proof of anything. Didn't anyone ever use Resource Hacker or 'strings' command? Is it really this hard to scrub or falsify timestamps in a DLL/EXE?
The most damning proof would have been some SSL certificate reused in a known compromised server for CnC. I heard rumors around it but nowhere in the analysis this was highlighted or discussed.
http://msdn.microsoft.com/en-us/library/ff648653.aspx. Web site last accessed April 11, 2016.
Have they just copied this report from some general security advice and prepended the latest attack at the top?
(Also, no https?)
There's nothing that I've read anywhere that makes me think the DNC was any kind of difficult target to compromise. Likely their information security posture was on par industry norms for small office networks-- absolutely terrible.
https://googleblog.blogspot.com.au/2015/04/protect-your-goog...
I think it's quite possible that this sort of warning actually may have increased phishing attempts because it made malware authors aware of increased possibilities.
From the report ... > In summer 2015, an APT29 spearphishing campaign directed emails [ .. ]
PS. please don't seasons instead of dates in reports, specify the quarter of the year.
A rootkit is the means to obtain "root" permissions which is an exclusive feature of UNIX/Linux operating systems. Powershell is a Windows product... these systems are Windows based. No rootkit. Period.
Reality check nothing because there were no bombshells found like James Coomey re-opening the FBI's investigation against that woman. A woman who nationally especially compared to Obama is highly unlikeable with a horrible public image. Though we're stuck with that crazy man... losing game either way!
- HRC campaign dictating what language journalists should use
- DNC colluded with HRC campaign to attack Sanders before primary was finished (or had even began in some cases)
- Evidence of DNC "Pied Piper" strategy to make the RNC nominate a 'crazy' candidate like Trump.
- Discussing how to paint the Sanders campaign as sexist.
I don't know if leaks were the deciding factor, but I think a handful of leaked things contributed.
Trump's tape on the bus was more of a bombshell yet she couldn't even beat him nationally. The DNC chose and did everything in their power to back a dog as a candidate vs. begging someone classy and likeable such as Biden to run. Obama if he could have ran a third term would have won and we wouldnt have this embarrassing ego maniac for our next president.