Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    P

    Put.as

    reverse.put.as · Personal blog · on HN since 2010

    A security researcher writes on macOS reverse engineering, covering the Apple sandbox, firmware security, malware analysis and OS bugs.

    Visit blogRSSHN submissions
    SecurityMobile & Apple
    What HN says

    Commenters cite its Apple Sandbox Guide as the main documentation for macOS sandboxing and its rootpipe-related write-ups.

    Stats for nerds
    49HN people shared it
    43linked in comments
    1Kstory points
    Nov 2024last shared
    2012people per year2024

    Top posts on HN

    1. 1
      Abusing Go's Infrastructure
      1 person · 381 points · first shared 2024 · 77 comments on HN
    2. 2
      Apple EFI firmware passwords and the SCBO myth
      2 people · 177 points · first shared 2016 · 36 comments on HN
    3. 3
      Knock Knock Who's There? – An NSA VM
      2 people · 159 points · first shared 2021 · 42 comments on HN
    4. 4
      Reversing Apple’s syslogd bug
      2 people · 96 points · first shared 2016 · 10 comments on HN
    5. 5
      AppleDoesntGiveAFuckAboutSecurity iTunes Evil Plugin Proof of Concept
      1 person · 85 points · first shared 2014 · 49 comments on HN
    6. 6
      Your Mac firmware security is completely broken
      4 people · 35 points · first shared 2015 · Discussion on HN
    7. 7
      About the processor_set_tasks() access to kernel memory vulnerability
      1 person · 16 points · first shared 2014 · Discussion on HN
    8. 8
      How to fix rootpipe in Mavericks and call Apple’s fix bullshit bluff
      3 people · 12 points · first shared 2015 · Discussion on HN
    9. 9
      Measuring OS X Meltdown Patches Performance
      4 people · 9 points · first shared 2018 · Discussion on HN
    10. 10
      Reverse Engineering HackingTeam's Latest OS X Malware
      3 people · 5 points · first shared 2016 · Discussion on HN

    What HN people wrote when they linked it

    • inkyotoMay 2022

      > The thing is, you cannot harden it even more.

      Yes, you can. You seem to have never used Trusted Solaris implementing the B1 TCSEC level and running on the certified hardware where all system objects are labelled and MAC is enforced at the kernel level. That is an example of a much more locked down system, which you are conjuring up OS X to be but the OS X is nowhere near to being that locked down nor controlled.

      The real trouble with the system hardening, however, arises at the network level where the traffic is fully encrypted, and it is impossible to tell whether a network connection, say, WhatsApp has established to 'external.fbsb1-1.fna.fbcdn.net' or to 'scontent.fams1-2.fna.fbcdn.net' is a legit one, or it is used for tracking the user. It is impossible to harden that further and is a unfortunate side effect of the use of the encryption.

      App sandbox profiles can still be hardened further by anyone, not just by Apple at a whim; see https://reverse.put.as/wp-content/uploads/2011/09/Apple-Sandbox-Guide-v1.0.pdf and https://paolozaino.wordpress.com/2015/10/20/maximum-security-and-privacy-using-mac-os-sandbox-and-tor-browser-bundle/ for details.

      Otherwise, since OS X is a UNIX implementation, therefore it can be scrubbed off of undesired features, if a need be:

      - SIP can be disabled.

      - Gatekeeper can inactivated peacefully (or via brute force by setting appropriate host entries to 0.0.0.0 in /etc/hosts).

      - Deemed to be illegit or nuisance services can be scrubbed…

    • derefrMay 2020

      Apple replaced the very simple (i.e. function fits in a cache line; inputs fit in a single dword) BSD user/group/other filesystem privileges system, with a Lisp interpreter (or maybe compiler? not sure) executing some security DSL[1][2].

      [1] https://wiki.mozilla.org/Sandbox/OS_X_Rule_Set

      [2] https://reverse.put.as/wp-content/uploads/2011/09/Apple-Sandbox-Guide-v1.0.pdf

      This capabilities-ruleset interpreter is what Apple uses the term "Gatekeeper" to refer to, mostly. It had already been put in charge of authorizing most Cocoa-land system interactions as of 10.12. But the capabilities-ruleset interpreter wasn't in the code-path for any BSD-land code until 10.15.

      A capabilities-ruleset "program" for this interpreter can be very simple (and thus quick to execute), or arbitrarily complex. In terms of how complex a ruleset can get—i.e. what the interpreter's runtime allows it to take into consideration in a single grant evaluation—it knows about all the filesystem bitflags BSD used to, plus Gatekeeper-level grants (e.g. the things you do in Preferences; the "com.apple.quarantine" xattr), plus external system-level capabilities "hotfixes" (i.e. the same sort of "rewrite the deployed code after the fact" fixes that GPU makers deploy to make games run better, but for security instead of performance), plus some stuff (that I don't honestly know too much about) that can require it to contact Apple's servers during the ruleset execution. Much of this stuff can be cached between…

    • pascal_cuoqNov 2014

      > Expanding this business to the private sector might have positive effects. Corporations could buy the "zero days" in their own products in order to fix them.

      I should point out that some companies are already getting vulnerabilities reported to them for free (in the best case, for the price of a symbolic bounty program) and fail to fix them. See http://reverse.put.as/2014/10/31/patching-what-apple-doesnt-want-to-or-how-to-make-your-old-os-x-versions-a-bit-safer/ for one recent example that comes to mind. Giving them the opportunity to pay market prices for the vulnerabilities is not going to improve the situation.

      Everything else remaining identical, the only thing the emergence of a free market for vulnerabilities will make efficient is the exploitation of victims that aren't informed of and do not have the capacity to fix them.

      The only real fix to the current situation starts with legislation that aligns the interests of the companies that rely on vulnerable code and those of their users. Forbidding the trading of vulnerabilities won't help, and encouraging it won't help either. Recent legislation in the EU forcing companies to disclose security breaches they are aware of is a first, baby step in the right direction. There are many essays by Bruce Schneier on this topic, here is one picked at random: https://www.schneier.com/blog/archives/2004/11/computer_securi.html

    • lioetersMay 2020

      In the Apple Sandbox Guide v1.0 [1], it mentions Dionysus Blazakis' paper [2] presented at Blackhat DC 2011.

      In the latter, Apple's sandbox rule set (custom profiles) is called SBPL - Sandbox Profile Language - and is described as a "Scheme embedded domain specific language".

      It's evaluated by libSandbox, which contains TinyScheme! [3]

      From what I could understand, the Scheme interpreter generates a blob suitable for passing to the kernel.

      ---

      [1] https://reverse.put.as/wp-content/uploads/2011/09/Apple-Sandbox-Guide-v1.0.pdf

      [2] https://media.blackhat.com/bh-dc-11/Blazakis/BlackHat_DC_2011_Blazakis_Apple_Sandbox-wp.pdf

      [3] http://tinyscheme.sourceforge.net/home.html

    • johncolanduoniMay 2017

      You can allow access to a unix socket via things like:

      (allow network-outbound (remote unix-socket (path-literal "/private/var/run/syslog")))

      Similarly you can allow use of shared memory:

      (allow ipc-posix-shm)

      Most of the rule types are documented here[1]. Even for the ones that aren't, the error message in the logs uses the same syntax (e.g. if a unix socket is blocked you'll get a complaint about "network-outbound"). You mostly just need to be able to copy and paste.

      [1]: https://reverse.put.as/wp-content/uploads/2011/09/Apple-Sandbox-Guide-v1.0.pdf

    • chrisfosterelliJun 2015

      The current version has a _very_ serious vulnerability, where when the system wakes from suspend on pre-mid-2014 models the entire UEFI BIOS is writable [0]. This could lead to wipe-proof rootkits. It initially appeared that their advice was going to be "buy a new macbook", so I'm very happy to see they bundled firmware updates along with this :)

      [0] https://reverse.put.as/2015/05/29/the-empire-strikes-back-apple-how-your-mac-firmware-security-is-completely-broken/

    Related

    Project Zerogoogleprojectzero.blogspot.com550 people

    Reading privileged memory with a side-channel

    Project Zero
    Company · last shared 2025
    Google Online Security Bloggoogleonlinesecurity.blogspot.com225 people

    No More Deceptive Download Buttons

    Google Online Security Blog
    Company · last shared 2016
    Jesse Squiresjessesquires.com39 people

    Why is Apple acting like an asshole?

    Jesse Squires
    Personal · last shared 2025
    Scot Hackerbirdhouse.org36 people

    Antique BeOS Content by Scot Hacker (2011)

    Scot Hacker
    Personal · last shared 2026
    Worth Doing Badlyworthdoingbadly.com35 people

    Booting a macOS Apple Silicon Kernel in QEMU

    Worth Doing Badly
    Personal · last shared 2026
    IOActive Blogblog.ioactive.com65 people

    Reverse Engineer’s Perspective on the Boeing 787 ‘51 days’ Directive

    IOActive Blog
    Company · last shared 2025
    Jonathan Zdziarskizdziarski.com100 people

    Apple Confirms “Back Doors”, Downplays Their Severity

    Jonathan Zdziarski
    Personal · last shared 2026
    Securelistsecurelist.com368 people

    Operation Triangulation: What you get when attack iPhones of researchers

    Securelist
    Company · last shared 2026