Better HN
topnewbestaskshowjobs
Log inSign up

codedokode

9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions

PHP developer from Russia.
Submissions

comment 9y ago · link · parent

They would not. Most probably found IP addresses will be either some cheap VPS bought by anonymous person or a Tor exit node (or maybe some infected machine). It is unlikely that government hackers would use stolen passwords at a computer in Kremlin or Capitol or Beijing or whereever they are.

comment 9y ago · link · parent

I would like to add some details about a username in case someone didn't understand its meaning. The github username spells like 'nullers'. 'Nulling' is a slang word meaning removing license protection from commercial web applications like CMS (and usually publishing them for everyone to use like some type of modern Robin Hood) and 'nullers' are the people who do 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

comment 9y ago · link · parent

You are right, I didn't look carefully, this is not simply eval(POST) backdoor, it has a payload and it is encrypted with an external key that is provided via POST or COOKIE; but I see some weak points and will try to guess the key.

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.

comment 9y ago · link · parent

The main arguments might be not technical. The political emails are pretty boring stuff for an outsider so it should be some government or politician bothering to get them.

I also remember that some gmail accounts of people from DNC staff were hacked. Gmail probably has logged what IP addresses were used when logging in with stolen passwords and they could be used as a hint too (though most probably they point to cheap VPS bought by some anonymous person or Tor node, I doubt anyone would use a stolen password from their real IP address).

comment 9y ago · link · parent

While the methods used were very simple, I have an opinion why this could be done for some government or political party. The emails and data from a political party are probably very boring stuff, so a typical hacker would not bother to spend a lot of time sending thousands of phishing emails to get access to them. And later he would have to read through them to find some facts the mass media would be interested in. Usually hackers hunt for things like credit card numbers or fame.

comment 9y ago · link · parent

I think there should be a separate UI for installing or running a downloaded program (with a huge red warning) so the users cannot accidentally run anything.

comment 9y ago · link · parent

I think it is rather the problem of poorly designed software. It is impossible to make millions of users to set up some secure configuration, install firewalls etc.

The software should have secure default settings, if a user is not a computer engineer he should not be able to execute files from email attachments.

comment 9y ago · link · parent

> The obfuscation used in the russian PHP shells looked awfully familiar

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.

comment 9y ago · link · parent

Ok, you are right, I didn't notice the multiplication sign. This rule really can detect infected PHP files.

comment 9y ago · link · parent

The problem here is that the system is not secure by default, one needs to hire a qualified specialist to set everything up. By default the user can run executable attachments or files downloaded from browser and it is a wrong design decision made many years ago. Users do not understand what is an "executable file", they got used to click an icon to see the file contents. This is just poorly designed UI that helps to deceive a user.

> 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.

comment 9y ago · link · parent

If an organization is working with sensitive data maybe they should invest some resources into security. I understand it is not easy because companies like Microsoft have been releasing poorly designed software (with things like autorun for USB drives) for 20 years and it still is the leader. But we have to advance step by step. For every single person needing executable attacments there are maybe million users who can run them without understanding the consequences.

comment 9y ago · link · parent

This rule is pretty useless. It requires file to be of a specific size and it requires function names not to be obfuscated. One could simply add a space between 'md5' and 'strrev' to bypass this rule.

And they replaced digits in 'base64_decode' with regexp as if there were other similar functions.

comment 9y ago · link · parent

I have looked through the report. The only useful information was brief description of attack methods, everything else looks like a list of general recommendations one can find on the OWASP website.

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.

comment 9y ago · link · parent

I do not understand how domains like ɢoogle (with some unicode G-like character) are registered? I remember when IDN were introduced there were concerns about spoofing similar URLs and there were some restrictions on what characters are allowed.

So now the owner of ɢoogle can add a signup form and start phishing for Google Accounts?

And I am sure Mr. Trump has no relation to this spam. Obviously it is done to turn people against him.

comment 9y ago · link · parent

If the vendor is patching kernel they probably must release their patches and proprietary drivers as GPL requires (regarding drivers they could avoid this by moving important parts into userspace).

comment 9y ago · link · parent

There is a "fastboot" [1] tool from Google that interacts with phone bootloaders that support it and can be used to flash the ROM.

> There's no technical difference between that and just copying files to a usually write-protected partition.

"Flashing" usually means "uploading" a filesystem image onto a partition, not copying single files.

[1] https://source.android.com/source/running.html#booting-into-...

comment 9y ago · link · parent

They can see that you are trying to hide something because all of your traffic goes to the single IP address.

comment 9y ago · link · parent

As I understand from the quotes above it doesn't matter which party knows about marked cards - the game is unlawful anyway.

comment 9y ago · link · parent

I wonder if Ivey would lost the game, could he request to get his money back because the game was "unlawful"?

comment 9y ago · link · parent

I guess this abuse reporting system was made to block spam via messages that are sent when adding a contact. But Microsoft doesn't check if the reported user is a spammer and whether he had sent any add requests.

comment 9y ago · link · parent

Cancellation can be implemented with another promise passed into cancelable function as an argument. This way it is easier to see that asynchronous function is cancellable. And Promise implementation would become simpler.

comment 9y ago · link · parent

The address in Delaware is a mail forwarder and they have the real address of a buyer.

comment 9y ago · link · parent

The buyer was from Eastern Europe and american address was a mail forwarder. By the way mail forwarders usually make photos of items sent through them so eBay could concact them and ask for photo (and see that the item was sent properly) if only it was interested to find out the truth.

comment 9y ago · link · parent

As I understand his mistake was to sell an item to Eastern Europe. He should have sold it to US so in case if something goes wrong he could use the police.

Mail forwarders usually take photos of items sent through them (so their customers could see what they would receive). Ebay could contact the forwarder if they wanted to find out the truth.

comment 9y ago · link · parent

The cellphone carrier (outside US and its allies) will not give data to NSA. In some countries it might even not know the name of a customer.

comment 9y ago · link · parent

I don't think this could be interpreted as a visual lag. fsync() is usually used by databases, not UI libraries. So the title is misleading.

My chinese Android phone has a more annoying hardware lag - a delay between touching the screen and touch event processing is over 100 ms. Any drum app is unusable. And if you try to scroll something up and down fast it is easy to see how the content on the screen lags behind finger movements.

comment 9y ago · link · parent

That is because user has a previous experience of double clicking files to run or view them and nothing bad happened.

> There's not a whole lot the OS can do if the user is determined to open e.g. "kittenpic.jpg.exe" or "invoice.doc.exe".

I think there are many options:

1) do not download executable files or make them non-executable after download

2) do not run downloaded executable files

3) do not run executable files without valid signature from OS developers

4) run executable files inside a sandbox

For example, iOS uses approaches 1, 3 and 4, and Android uses 4. Only desktop operating systems (including some Linux distrbutions) allow to trick user into running a malware with full access to user's files by clicking a link and pressing Ok twice. That is why I consider this is OS fault, not user's.

In many environments users are not supposed to download and run executable files. For example, in a workplace an employee is supposed to use only software approved by the company. And still no operating system provides an easy way to enforce it.

Imagine if pressing a wrong button on a washing machine would cause installing malware. Would you like to buy such device?

comment 9y ago · link · parent

Do you mean one has to be a computer science graduate to use a computer? And I doubt even CS graduates can always distinguish between real software and fake one with malware inside.

I think the problem is in PC and OS design.

comment 9y ago · link · parent

I wonder what can be changed to help find and prosecute the distributors of malware?

By the way I think that the ones held responsible and paying for the damages should be distributors, not malware developers especially if they did not know exactly how it would be used. Making malware is like making a gun, it is allowed in some countries. Maybe it will be used for good purposes.

comment 9y ago · link · parent

It probably depends on your IP address and how many accounts were registered using it (if your ISP uses NAT then many users share a single address) and maybe other factors like country etc.
1
174175176
185