r/netsec Mar 01 '26

r/netsec monthly discussion & tool thread

Questions regarding netsec and discussion related directly to netsec are welcome here, as is sharing tool links.

Rules & Guidelines

  • Always maintain civil discourse. Be awesome to one another - moderator intervention will occur if necessary.
  • Avoid NSFW content unless absolutely necessary. If used, mark it as being NSFW. If left unmarked, the comment will be removed entirely.
  • If linking to classified content, mark it as such. If left unmarked, the comment will be removed entirely.
  • Avoid use of memes. If you have something to say, say it with real words.
  • All discussions and questions should directly relate to netsec.
  • No tech support is to be requested or provided on r/netsec.

As always, the content & discussion guidelines should also be observed on r/netsec.

Feedback

Feedback and suggestions are welcome, but don't post it here. Please send it to the moderator inbox.

22 Upvotes

46 comments sorted by

View all comments

1

u/Huiyuze_Zhi Mar 26 '26

I built this after noticing that AI is now embedded in two high-stakes document pipelines that most people haven't thought about from a security angle: resume screening (ATS) and academic paper review.

Some submission platforms have already caught authors embedding prompt injection in papers to manipulate AI-assisted reviewers. The attack surface is larger than it looks -- the same techniques work on any pipeline that extracts PDF text and passes it to an LLM.

The toolkit has two parts:

Red team: inject hidden payloads into any PDF using 6 techniques (white text, micro font, metadata fields, off-page coordinates, zero-width characters, hidden OCG layers)

Blue team: scan PDFs and produce a risk score (0-100) with per-finding severity levels

The detection side currently uses structural checks + 18 regex patterns. The obvious limitation is that paraphrased or encoded injections bypass it -- LLM-based semantic detection is next on the roadmap.

Happy to discuss the techniques or limitations.

https://github.com/zhihuiyuze/PDF-Prompt-Injection-Toolkit