S

Samy Kamkar

samy.pl · Personal blog · on HN since 2010

Samy Kamkar, a security researcher, shows hacking projects, including Evercookie, PoisonTap, NAT Slipstreaming, and hardware attack devices.

What HN saysHN links it for his security tools like Evercookie and for the site itself, which commenters note tries to detect DevTools and block viewing its source.
187HN people shared it
134linked it in comments
64stories submitted
2.5Kstory points
1 year agolast shared
2010people per year2026

Most-shared posts

  1. 1
  2. 2
    NAT-to-NAT direct connections with no proxy/STUN needed
    27 people · 279 points · first shared 2010 · 40 comments on HN
  3. 3
    Homepage that looks like windows
    14 people · 5 points · first shared 2011 · 3 comments on HN
  4. 4
    NAT Slipstreaming
    13 people · 562 points · first shared 2020 · 178 comments on HN
  5. 5
    PoisonTap (2016)
    13 people · 66 points · first shared 2016 · 7 comments on HN
  6. 6
  7. 7
    Find anyone's address from their router MAC code
    8 people · 73 points · first shared 2010 · 33 comments on HN
  8. 8
  9. 9
    The MySpace Worm (2005)
    6 people · 4 points · first shared 2019 · discussion on HN
  10. 10
    SkyJack - autonomous drone hacking
    5 people · 29 points · first shared 2013 · discussion on HN
  11. 11
    Samy Kamkar: MagSpoof – credit card/magstripe spoofer
    5 people · 5 points · first shared 2015 · 3 comments on HN
  12. 12
    USBdriveby – Exploiting USB in Style
    4 people · 103 points · first shared 2014 · 24 comments on HN
  13. 13
    Show me that BSSID on a map
    4 people · 7 points · first shared 2011 · discussion on HN
  14. 14
  15. 15
    Samy Kamkar – webscan: web-based network scanner
    3 people · 3 points · first shared 2020 · discussion on HN

What HN people wrote when they linked it

d4a · 2022-07-15
Might not be it but maybe Samy Kamkar is who you are looking for? https://samy.pl/
pityJuke · 2021-06-28
> Doesn't work if DevTools is undocked and will show false positive if you toggle any kind of sidebar. This annoys me every time because I use Tree Style Tab, and a website tries to detect DevTools. See Samy Kamkar's website [0]. [0]: https://samy.pl/
alvarop · 2021-03-19
Reminds me of Samy's website. For a fun time, try to view the page source: https://samy.pl/
alibarber · 2020-07-09
I can't remember much about images - but basically filtering out question-marks and equals symbols (i.e. ...thing.php?some=value) in a lot of places. I remember getting Facebook and when they first started their API it was a bit better thought out, so they loaded images on the user's behalf. Some great reading about 'hacking' myspace at the time: https://samy.pl/myspace/
MaxBarraclough · 2020-03-28
That's a good question. Is there anything to stop a disreputable advertiser/tracker hijacking the EME DRM scheme for tracking? The evercookie project doesn't appear to leverage EME, for what that's worth. https://samy.pl/evercookie/
Ajedi32 · 2020-01-30
Yep. Not only is HTTPS stripping still a problem, but active attackers can do all sorts of other nasty things as well, like force the user's browser to initiate plaintext HTTP requests to non-HSTS sites and then use that to steal cookies from third party domains, or achieve persistent XSS by poisoning the user's browser cache. See https://samy.pl/poisontap/ for a great example of that attack in action.
beagle3 · 2017-09-01
> site showing the ads could easily fake Yes, that's what I mean by "unable to verify"; If the site is honest, everyone would be just as happy, but there is already so much fraud, even with (relatively) trustworthy Google and Facebook, that everyone wants some ability to verify; If all the traffic goes only through the site, that ability is lost. > Assuming that the advertising site would just have a proxy that tunnelled everything to the ad server, would the ad server not get the exact same traffic? Not exactly - the wide-sense-cookies[0] that allow the ad server to track users across different web sites would not be. Fingerprinting[1] would still work subject to advertisers trusting the proxy. [0] including flash objects, etags, localstorage, etc, see https://samy.pl/evercookie/ for a 7-year-old discussion. [1] https://panopticlick.eff.org/
bob1029 · 2017-06-28
I would highly recommend looking into this (seemingly-obscure) technique for NAT hole punching: https://samy.pl/pwnat/ It would allow for a "magic wormhole"-style system without the need for a MITM (trusted or otherwise).
hoers · 2015-06-23
A lot of them, yes. But there are techniques like browser profiling or persistent cookies[1] that still manage to trump a lot of them. The best blocker I've come across is ublock, amazingly memory efficient, fully customizable and featuring so many good block lists that it should block at least as much as ghostery or disconnect (if not more). Just the GUI looks a bit .. functional [1] http://samy.pl/evercookie/
noobie · 2015-06-04
The "source code" of http://samy.pl is quite interesting /* No source for you! *// /.source.replace(/.{7}/g,function(w){document.write(String.fromCharCode(parseInt(w.replace(/ /g,'0').replace(/ /g,'1'),2)))});
lawl · 2015-04-30
> Simply put, this is a proxy server that works behind a NAT, even when the client is behind a different NAT, without any 3rd party or network changes. > There is no middle man, no proxy, no 3rd party, no UPnP/STUN/ICE required, no spoofing, and no DNS tricks. http://samy.pl/pwnat/ The FAQ is great too :) Ok, so does this really work? Yes. Try it! I'm confused. This can't work. You should be, and it does work. But it can't. My NAT blocks incoming packets and so will the other. I know.
pyvpx · 2015-04-29
while I fully agree with your last part, the first part of your argument is dubious at best. it would be trivial to get away with a malicious access point in an airport. they helpfully provide charging stations for your electronics, and all it takes is an identically sized and shaped power brick to drop in a malicious access point. see http://samy.pl/keysweeper/ but modified with wifi instead of bluetooth and you get the idea.
pjonesdotca · 2015-01-12
Looking at the list of projects also done (by going to root of url) is quite impressive. http://samy.pl/
nwf · 2013-07-01
While on the topic of clever UDP-based NAT traversal techniques, I think my favorite to date is pwnat [http://samy.pl/pwnat/]. Uses ICMP in a clever way, requires no 3rd party.
pygy_ · 2012-03-03
This rendrers Tor ineffective if you're behind a Wifi router and have Javascript enabled. This guy's track record is impressive. He wrote the Myspace worm, PWNAT (client-server NAT to NAT penetration), the evercookie, and more. http://samy.pl/
tomg · 2012-02-28
I think disabling third-party cookies (via your browsers preference) would accomplish this (though it's no VM), with the added benefit of not needing to re-log in for each tab/window. This doesn't, however, block all tracking scripts, as some may get your IP via an embedded 1x1 gif or other request. There's still the issues of super-cookies, or Flash cookies, or scripts that embed a unique image in your cache and then read it out, etc. So for this I recommend AdBlock or Ghostery. Edit: Here's aseful link on this topic: http://samy.pl/evercookie/
uxp · 2012-02-08
That's circumstantial evidence at best. Here's more useless analytical evidence to suggest that most people don't know everything: when Samy Kamkar[0] first demonstrated geolocation via BSSIDs, I tried out every wireless router in my house, including one that had not been plugged into a wall in over 4 years and never at my current residence, long before Google started wardriving for street maps and well before the first iPhone came out. He was able to accurately map it to my old residence. That means that sometime before December of 2006, someone or something was able to snatch my BSSID from someplace, accurately note it's physical location in the world, and store that away in some database that was used almost 4 years later. I can guarantee you it was not Apple, and I'd be damned surprised if it was Google at that time. [0] http://samy.pl/mapxss/
spurgu · 2021-03-20
I thought I was smart by doing "curl https://samy.pl/". :(
kweks · 2020-03-02
For those who may be curious, how two very similar products (USBNinja and the O.MG Cable) exist, there is a bit of history. Both products are based on the concept of a HID attack: most modern OSs (MacOS, Linux, Windows, Android...) trust HID (Human Interface Devices) implicitly. This means that when you plug in a Keyboard, Mouse, Storage device or Network device, they work instantly. You don't need to install drivers or explicitly enable them. The newly attached devices work instantly - even on a locked device. The advantage here is obvious. The disadvantage is more subtle, but was exploited by the Hak5 "Rubber Ducky". By emulating a HID device (or even worse, multiple HID devices simultaneously..) - you could essentially control a computer and deploy / execute anything, as if you had full control of the device. "The Classic" PoC is the Windows "Creds" attack [1] - which unlocks locked windows machines - later turned very, very nuclear by Samy Kamkar with PoisonTap [2], which essentially exfiltrates data, exfiltrates cookies and credentials, and permanently backdoors a locked PC. The idea of moving from a dedicated device (Rubber Ducky) to an embedded device first came to surface with the BadUSB device [3]. The idea of moving it into a cable came from the NSA, a device called COTTONMOUTH [4][6], which was leaked during the NSA document dumps [5]. MG, the designer of BadUSB, built a prototype of this with today's resources. RRG, the company behind the latest iterations…
sitkack · 2019-10-31
vince14 · 2015-10-19
See it here in action: http://samy.pl/
mrinfinitiesx · 2024-08-23
Even if patched/depracated, still a websocket to any ip-address with the packets as long as it can send the packet. Literally any chat applet. Torrent files, pretty much anything. It's not that scary at the moment. Browsers can do it now. It's an age old 'feature' -> https://github.com/garywill/LAN-port-scan-forbidder uBlock apparently blocks your browser from reaching out to your LAN though, but; no 'sandbox escapes' needed, just javascript being loaded. Our browsers could have been exploiting things behind NAT this entire time. Smart TVs, Smart watches, phones, anything pingable on your LAN. Go here and see it in action: http://samy.pl/webscan/
63stack · 2024-06-01
Isn't NAT slipstreaming a "real" vector? https://samy.pl/slipstream/
bigiain · 2024-03-15
Samy Kumar did a project about 10 years back, where he worked out how to brute force a 12 bit garage door code in under 10 seconds, using a childs toy: http://samy.pl/opensesame/ My garage door opener uses a 12 but dip switch config (and my last place used an 8 dip switch config, and I'm pretty sure still does). Re reading that OpenSesame post was fun. It reminded me of a few names I need to go find out what they're up to these days (Travis Goodspeed and Michael Ossmann are names I remember seeing doing/writing-up some really cool stuff), and that the Mattel IM-ME toy he was using uses that same CC1110 "sub gHz"
recursive · 2024-02-02
For a bad actor, this is easily work-around-able using various local persistence mechanisms like evercookie. https://samy.pl/evercookie/
MatmaRex · 2024-01-27
You can read about some things they did, and didn't! https://samy.pl/myspace/tech.html
NukedOne · 2023-12-20
I'll share a couple: - Branch prediction https://danluu.com/branch-prediction/ - How fast are Linux pipes anyway? https://mazzo.li/posts/fast-pipes.html - NAT Slipstreaming v2.0 https://samy.pl/slipstream/
jeroenhd · 2023-08-08
Disabling UPnP makes your system more secure, but unless you also disable all NAT ALGs in your router, you're still exposed to its dangers. I don't think most routers have a setting for that, so if infected devices are part of your security model, it would be wise to assume NAT is entirely non-functional because of [NAT slipstream attacks](https://samy.pl/slipstream/). An infected device can modify the router's NAT table to effectively act like UPnP, except they don't provide a user interface for you to audit. If you're NAT free (i.e. only use IPv6) disabling UPnP can be a decent security measure if you're willing to manually do all of your firewall exclusions, but honestly host firewalls are the only reliable protection method for most people these days.
hashstring · 2023-05-27
> Use a SIP Application Layer Gateway. This is a horrible feature offered by some routers. Basically, it deep-packet-inspects your SIP traffic, rewrites the headers, and creates port forwards on-the-fly to make sure the inbound audio stream makes its way to your device. SIP ALGs are a total hack and notoriously buggy. Yes, these hacky ALG features also allowed internet users to access internal IPs on arbitrary services (!); named “remote arbitrary firewall pinhole control”. The attack was published in 2020 and named NAT slipstreaming [1]. [1] https://samy.pl/slipstream/

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