NETRESEC Blog

netresec.com · Company blog · on HN since 2011

NETRESEC is a network security firm whose blog covers network forensics and traffic analysis, including the 2015 attack on GitHub.

What HN saysHN links it for its analysis of China's man-on-the-side attack on GitHub, which commenters say injected JavaScript rather than using a botnet.
27HN people shared it
12linked it in comments
23stories submitted
823story points
2 years agolast shared
2011people per year2026

Most-shared posts

  1. 1
    China's Man-On-the-Side Attack on GitHub
    6 people · 692 points · first shared 2015 · 309 comments on HN
  2. 2
    Detecting Tor Communication in Network Traffic
    2 people · 80 points · first shared 2013 · 27 comments on HN
  3. 3
    Analysis of Chinese MITM on Google
    2 people · 15 points · first shared 2014 · 3 comments on HN
  4. 4
    Finding Targeted Sunburst Victims with PDNS
    2 people · 4 points · first shared 2021 · 1 comments on HN
  5. 5
    Publicly Available PCAP Files
    2 people · 1 points · first shared 2022 · discussion on HN
  6. 6
  7. 7
    China%27s man on the side attack on github
    2 people · first shared 2015
  8. 8
    RawCap Windows sniffer
    1 people · 3 points · first shared 2011 · discussion on HN
  9. 9
    Covert Man-On-the-Side Attacks (a.k.a. QUANTUM INSERT)
    1 people · 3 points · first shared 2015 · discussion on HN
  10. 10
    Chinese MITM Attack on iCloud
    1 people · 3 points · first shared 2014 · discussion on HN
  11. 11
    Capturing Decrypted TLS Traffic with Arkime
    1 people · 2 points · first shared 2020 · discussion on HN
  12. 12
  13. 13
    Command-line Forensics of hacked PHP.net
    1 people · 2 points · first shared 2013 · discussion on HN
  14. 14
  15. 15
    CapLoader Port Independent Protocol Detection
    1 people · 2 points · first shared 2015 · discussion on HN

What HN people wrote when they linked it

igammarays · 2015-04-02
Read the details of the attack. It's not a botnet. The attack works by injecting malicious JavaScript into common websites within Chinese borders, and doing this only for visitors of these files from outside China. Only the Great Firewall (or the website owners, ie. government-controlled Baidu) can possibly do that. http://www.netresec.com/?month=2015-03&page=blog&post=china%27…
EvanAnderson · 2023-02-02
I used to use netsh to capture on Windows boxes but the workflow for getting the data into pcap format was awful. Lately I’ve been using RawCap[0]. It’s a single EXE that works on stock versions of Windows and produces pcap files. It has no capture-time filtering options, which is a bummer, but it’s quicker for me to get data to look at than the netsh / convert to pcap workflow. [0] https://www.netresec.com/?page=Blog&month=2020-01&post=RawCap-…
asmr · 2022-03-02
Excited to read the title of this post. I've been searching for general pcap labs recently to sharpen my packet analysis skills. A little disappointed to see it's from CNTDA (since i've already done the labs from 7th ed). It's been a while though perhaps I will revisit these labs for the 8th ed. This site also offers a ton of pcaps but not necessarily in exercise/lab format https://www.netresec.com/?page=PcapFiles
rahimnathwani · 2015-09-19
"Baidu Yun" is an online file locker (like Dropbox) with a generous free quota. You can create a shareable link for a file with a single click. Why would you think someone at Baidu would have knowledge of a particular file a user shared on that service? Separately, you bring up Baidu's "involvement" in the DDoS attack on GitHub. I remember reading that this was achieved using a man-in-the-middle attack on customers of Baidu's analytics product, which would not need Baidu's cooperation: http://www.netresec.com/?page=Blog&month=2015-03&post=China%27…
stock_toaster · 2015-06-15
I assume you can (untested) reference https endpoints with a favicon? If you can inject html though, a hidden image would probably would just as well. Although the behavior of chrome apparently still requesting the favicon file after the tab has closed, and possibly storing it in the history or bookmark file, may make this more or less appealing. Unsure. http://www.netresec.com/?page=Blog&month=2015-03&post=China%27…
acdha · 2015-04-10
Actually, it would have stopped this particular variant because Baidu serves the script from baidu.com: http://www.netresec.com/?page=Blog&month=2015-03&post=China%27… That said, it would only matter if Baidu was doing something like serving the script only over HTTPS using HSTS which I imagine would incur a non-trivial backlash for them. I'd also be surprised if they couldn't relatively easily move on to another similarly insecure script requested by many people outside of China.
mirashii · 2015-04-02
The man on the side they're performing, according to analysis, seems to be letting the initial SYN through to the original server, you get the SYN-ACK back from the actual Baidu server. Then after your ACK and HTTP GET, the other packets are injected. If they wanted to make the attack more subtle, messing with the timing to make it match the original SYN-ACK pair and keeping the right TTL values would make it much harder to detect. http://www.netresec.com/?month=2015-03&page=blog&post=china%27…
fru2013 · 2014-09-13
Likely a technical misunderstanding by the author. It is possible for an ISP to detect tor traffic[1], but not determine the contents of the traffic. My guess is that the author is not aware of this. http://www.netresec.com/?page=Blog&month=2013-04&post=Detectin…
netresec · 2013-02-03
New findings regarding the Chinese MITM of GitHub.com can be found here: http://netresec.com/?b=1328C6B Turns out the guy who uploaded the packet capture file was @chenshaoju
userbinator · 2015-12-28
I've used this behaviour --- non-maliciously --- multiple times in the past to override APIs for logging/tracing/debugging purposes. For example, I have a set of DLLs[1] that you can put in the same directory as the .exe of an application and it will log all network traffic that it generates. Very useful and convenient compared to the alternatives. Another use is to workaround compatibility problems. What I find more saddening is the trend to view any behaviour that could potentially be exploited as a vulnerability, regardless of how useful it could be, which just leads to locked-down user-hostile systems where nothing is possible without going through some sort of ridiculously bureaucratic excess of process. Thus, I think the root cause of this problem is not with the DLL loading behaviour, but with this... The bad guy just navigates a frame of your browser to the DLL of his choice and, if you’re on Chrome or Microsoft Edge, the DLL is dropped in the Downloads folder without even asking ...entirely unconsented file download. The design of putting all downloads in one place is a small contributing factor. [1] http://www.netresec.com/?page=Blog&month=2011-01&post=Proxocke… Edit: we can also exploit this behaviour benevolently by putting a set of DLLs in the Downloads folder that would be loaded by any installers being run from there, which could do things like sandboxing/install logging. (Presumably browsers would be not so brash as to…

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close