7 ms·
This is amazing and terrifying (I am a security engineer and parsing complex document formats is a never-ending treasure trove of vulnerabilities).
by efitz 2y ago
This is amazing and terrifying (I am a security engineer and parsing complex document formats is a never-ending treasure trove of vulnerabilities).
- tashian 2y agoAI agents run in isolated VMs, but PDFs have been out here running in the open for 30 years!
- miohtama 2y agoBut can your PDF run an AI agent?
- freedomben 2y agoLooking forward to a day when you may not have a powerful enough GPU to open a PDF
- hnlmorg 2y agoIn my opinion the question isn’t so much “if” but rather “when”. When will AI research and hardware capabilities reach a point that it’s practical to embed something like that into a regular document? We’ve already seen proof of concept LLMs embedded into OpenType fonts. I guess the other question is then “what capabilities would these AI agents have?” You’d hope just permission to present within that document. But that depends entirely on what unpatched vulnerabilities are lurking (such as the Microsoft ANSI RCE also featured on the HN front page)
- btown 2y agoFor Chrome's PDF renderer, the runtime is V8, so we're literally one (hilarious) line of code away from this glorious future existing today: https://pdfium.googlesource.com/pdfium/+/refs/heads/main/fpdfsdk/fpdf_view.cpp#1210 https://pdfium.googlesource.com/pdfium/+/refs/heads/main/fpd... > // Use interpreted JS only to avoid RWX pages in our address space. Also, --jitless implies --no-expose-wasm, which reduce exposure since no PDF should contain web assembly. > return "--jitless";
- siva7 2y agoThe first widespread AI Malware will be a historic moment in this century. It will adapt like a real biological virus to its host and we have no cure for this.
- saagarjha 2y agoWe could unplug all the GPUs.
- Swizec 2y ago> But can your PDF run an AI agent? Oh it's so much worse than that. Your font can run an AI agent. Llama.ttf: A font which is also an LLM -- https://news.ycombinator.com/item?id=40766791 https://news.ycombinator.com/item?id=40766791
- bawolff 2y agoWell a font using a custom experimental shaping library. Your font can't do it normally.
- belowm 2y agoCrazy. Looking forward shipping apps as .ttf instead of docker images.
- erk__ 2y agoYou can also play Tetris in a font: https://www.youtube.com/watch?v=Ms1Drb9Vw9M&t=1370s https://www.youtube.com/watch?v=Ms1Drb9Vw9M&t=1370s (disclaimer: own work)
- neuroelectron 2y agoThis isn't even the beginning of what's possible in PDFs.
- wayvey 2y agoThe amount of attack surface in various format parsers is pretty stunning and terrifying indeed
- mizzao 2y agoThe "code execution" in PDF parsing is what enabled this legendary zero-click, zero-day exploit of iOS devices: https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-into-nso-zero-click.html https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-i...
- enews01 2y agoTheres a malaysian movie where the main premise is a hacker who uses pdf executions to steal one cent from every persons bank account. Its pretty interesting.
- brettermeier 2y agoDo you know the name of the movie?
- wastholm 2y agoNot OP, but I found a series, not a movie, titled _One Cent Thief_ that fits the description. Sounds interesting. https://archive.org/details/OneCentThiefSeries https://archive.org/details/OneCentThiefSeries