Top
Best
New

Posted by takira 1/14/2026

Claude Cowork exfiltrates files(www.promptarmor.com)
837 points | 376 comments
burkaman 1/14/2026|
In this demonstration they use a .docx with prompt injection hidden in an unreadable font size, but in the real world that would probably be unnecessary. You could upload a plain Markdown file somewhere and tell people it has a skill that will teach Claude how to negotiate their mortgage rate and plenty of people would download and use it without ever opening and reading the file. If anything you might be more successful this way, because a .md file feel less suspicious than a .docx.
raincole 1/15/2026||
> because a .md file feel less suspicious than a .docx

For a programmer?

I bet 99.9% people won't consider opening a .docx or .pdf 'unsafe.' Actually, an average white-collar workers will find .md much more suspicious because they don't know what it is while they work with .docx files every day.

AshamedCaptain 1/15/2026|||
For a "modern" programmer a .sh file hosted in some random webserver which you tell him to wget and run would be best.
OoooooooO 1/15/2026|||
sudo run "some link to a shell script"

Never understood why that became so common place ...

4gotunameagain 1/15/2026|||
Shots fired !

I wish you were wrong.

leokennis 1/15/2026||||
> an average white-collar workers will find .md much more suspicious because they don't know what it is while they work with .docx files every day

I think the truly average white collar worker more or less blindly clicks anything and everything if they think it will make their work/life easier...

RCitronsBroker 1/15/2026||
just tell em .md stands for mortgage debater
behnamoh 1/15/2026||||
> an average white-collar workers will find .md much more suspicious

*.dmg files on macOS are even worse! For years I thought they'd "damage" my system...

arghwhat 1/15/2026|||
> For years I thought they'd "damage" my system...

Well, would you argue that the office apps you installed from them didn't cause you damage, physically or emotionally?

mock-possum 1/15/2026|||
It was a rather unfortunate choice of extension
nine_k 1/15/2026|||
Most IT departments educate users about the dangers of macros in MS Office files of suspicious provenance.

The instruction may be in a .txt file, which is usually deemed safe and inert by construction.

bandrami 1/15/2026|||
Isn't one of the main use cases of Cowork "summarize this document I haven't read for me"?
zombot 1/15/2026||
Once again demonstrating that everything comes at a cost. And yet people still believe in a free lunch. With the shit you get people to do because the label says AI I'm clearly in the wrong business.
azan_ 1/15/2026||
There are tons of free lunches everywhere though.
rpigab 1/15/2026|||
People trust their browser nowadays, I'd expect the attack to be even easier if you just render the markdown in html, hiding the injection using plain old css text styling like in the docx but with many more possibilities.

You can even add a nice "copy to clipboard button" that copies something entirely different than what is shown, but it's unnecessary, and people who are more careful won't click that.

fragmede 1/14/2026|||
Mind you, that opinion isn't universal. For programmer and programmer-adjacent technically minded individuals, sure, but there are still places where a pdf for a resume over docx is considered "weird". For those in that bubble, which ostensibly this product targets, md files are what hackers who are going to steal my data use.
burkaman 1/14/2026|||
Yeah I guess I meant specifically for the population that uses LLMs enough to know what skills are.
reactordev 1/15/2026|||
This is why I use signed PDF’s. If a recruiter or manager asks for a docx, I move on.

You’re only going to ever get a read only version.

ajxs 1/15/2026|||
What is this measure defending against (other than getting a job)? The recruiter can still extract the information in your signed PDF, and send their own marked-up version to the client in whatever format they like. Their request for a Word document is just to make that process easier. Many large companies even mandate that recruitment agencies strip all personally-identifiable information out of candidates' resumes[1], to eliminate the possibility of bias.

1: I wish they didn't, because my Github is way more interesting than my professional experience.

jkaplowitz 1/15/2026||||
All PDF security can be stripped by freely available software in ways that allow subsequent modifications without restriction, except the kind of PDF security that requires an unavailable password to decrypt to view, but in that case viewing isn’t possible either.

Subsequent modifications would of course invalidate any digital signature you’ve applied, but that only matters if the recipient cares about your digital signature remaining valid.

Put another way, there’s no such thing as a true read-only PDF if the software necessary to circumvent the other PDF security restrictions is available on the recipient’s computer and if preserving the validity of your digital signature is not considered important.

But sure, it’s very possible to distribute a PDF that’s a lot more annoying to modify than your private source format. No disagreement there.

reactordev 1/15/2026|||
You think a recruiter will be a forensic security researcher? Having document level digital signature is enough for 99% of use cases. Most software that a consumer would have respects the signature and prevents any modifications. Sure, you could manually edit the PDF to remove the document signature security and hope that the embedded JavaScript check doesn’t execute…
darkwater 1/15/2026|||
GP attack vector was probably recruiter editing the CV to put their company name in some place and forward it to some client. They are lazy enough to not even copy-paste the CV.
pluralmonad 1/15/2026||||
Read-only... Until I ctrl-p in Firefox.
reactordev 1/15/2026||
You can’t open it in a browser.

It requires a proper PDF viewer.

w-ll 1/15/2026|||
Care to share your resume? I've built PDF scanning tech before the rise of llms, OCR at the very least will defeat this.
reactordev 1/15/2026|||
Mark-I eyeball is totally capable.
jagged-chisel 1/15/2026|||
Are you talking about defeating digital signatures?
cyanydeez 1/14/2026||
The smart bear versus the unopenable trashcan.
Tiberium 1/14/2026||
A bit unrelated, but if you ever find a malicious use of Anthropic APIs like that, you can just upload the key to a GitHub Gist or a public repo - Anthropic is a GitHub scanning partner, so the key will be revoked almost instantly (you can delete the gist afterwards).

It works for a lot of other providers too, including OpenAI (which also has file APIs, by the way).

https://support.claude.com/en/articles/9767949-api-key-best-...

https://docs.github.com/en/code-security/reference/secret-se...

securesaml 1/14/2026||
I wouldn’t recommend this. What if GitHub’s token scanning service went down. Ideally GitHub should expose an universal token revocation endpoint. Alternatively do this in a private repo and enable token revocation (if it exists)
jychang 1/14/2026|||
You're revoking the attacker's key (that they're using to upload the docs to their own account), this is probably the best option available.

Obviously you have better methods to revoke your own keys.

securesaml 1/15/2026||
it is less of a problem for revoking attacker's keys (but maybe it has access to victim's contents?).

agreed it shouldn't be used to revoke non-malicious/your own keys

nebezb 1/15/2026||
The poster you originally replied to is suggesting this for revoking the attackers keys. Not for revocation of their own keys…
securesaml 1/15/2026|||
there's still some risk of publishing an attacker's key. For example, what if the attacker's key had access to sensitive user data?
throwawaysleep 1/15/2026|||
All the more reason to nuke the key ASAP, no?
avarun 1/15/2026|||
[flagged]
eru 1/15/2026|||
> What if GitHub’s token scanning service went down.

If it's a secret gist, you only exposed the attacker's key to github, but not to the wider public?

OJFord 1/15/2026||
They mean it went down as in stopped working, had some outage; so you've tried to use it as a token revocation service, but it doesn't work (or not as quickly as you expect).
mucle6 1/14/2026|||
Haha this feels like you're playing chess with the hackers
j45 1/14/2026||
Rolling the dice in a new kind of casino.
Davidzheng 1/15/2026|||
I'm being kind of stupid but why does the prompt injection need to POST to anthropic servers at all, does claude cowork have some protections against POST to arbitrary domain but allow POST to anthropic with arbitrary user or something?
rswail 1/15/2026|||
In the article it says that Cowork is running in a VM that has limited network availability, but the Anthropic endpoint is required. What they don't do is check that the API call you make is using the same API key as the one you created the Cowork session with.

So the prompt injection adds a "skill" that uses curl to send the file to the attacker via their API key and the file upload function.

pleurotus 1/15/2026|||
Yeah they mention it in the article, most network connections are restricted. But not connections to anthropic. To spell out the obvious—because Claude needs to talk to its own servers. But here they show you can get it to talk to its own servers, but put some documents in another user's account, using the different API key. All in a way that you, as an end user, wouldn't really see while it's happening.
nh2 1/14/2026|||
So that after the attackers exfiltrate your file to their Anthropic account, now the rest of the world also has access to that Anthropic account and thus your files? Nice plan.
DominoTree 1/15/2026||
For a window of a few minutes until the key gets automatically revoked

Assuming that they took any of your files to begin with and you didn't discover the hidden prompt

sebmellen 1/14/2026|||
Pretty brilliant solution, never thought of that before.
blks 1/15/2026|||
If we consider why this is even needed (people “vibe coding” and exposing their API keys), the word “brilliant” is not coming to mind
darkwater 1/15/2026||
To be fair, people committed tokens into public (and private) repos when "transformers" just meant Optimus Prime or AC to DC.
j45 1/14/2026|||
Except is there a guarantee of the lag time from posting the GIST to the keys being revoked?
sk5t 1/14/2026||
Is this a serious question? Whom do you imagine would offer such a guarantee?

Moreover, finding a more effective way to revoke a non-controlled key seems a tall order.

j45 1/15/2026||
If there’s a delay between jets being posted and disabled they would still be usable no?
trees101 1/14/2026|||
why would you do that rather than just revoking the key directly in the anthropic console?
mingus88 1/14/2026||
It’s the key used by the attackers in the payload I think. So you publish it and a scanner will revoke it
trees101 1/14/2026|||
oh I see, you're force-revoking someone else's key
rswail 1/15/2026||
Which is an interesting DOS attack if you can find someone's key.
OJFord 1/15/2026||
The interesting thing is that (if you're an attacker) your choice of attack is DoS when you have... anything available to you.
freakynit 1/15/2026|||
Does this mean a program can be written to generate all possible api keys and upload to github thereby revoke everyone's access?
kylecazar 1/15/2026||
They are designed to be long enough that it's entirely impractical to do this. All possible is a massive number.
freakynit 1/15/2026||
That's true tho... possible, but impractical.
antonvs 1/15/2026||||
Not possible given the amount of matter in the solar system and the amount of time before the Sun dies.
cortesoft 1/15/2026|||
Only possible if you are unconstrained by time and storage.
eru 1/15/2026||
Not only you, but GitHub too, since you need to upload.

Storage is actually not much of a problem (on your end): you can just generate them on the fly.

lanfeust6 1/14/2026||
Could this not lead to a penalty on the github account used to post it?
bigfatkitten 1/14/2026||
No, because people push their own keys to source repos every day.
lanfeust6 1/14/2026||
Including keys associated with nefarious acts?
edoceo 1/15/2026||
Maybe, the point is that people, in general, commit/post all kinds of secrets they shouldn't into GitHub. Secrets they own, shared secrets, secrets they found, secrets they don't known, etc.

GitHub and their partners just see a secret and trigger the oops-a-wild-secret-has-appeared action.

hombre_fatal 1/14/2026||
One issue here seems to come from the fact that Claude "skills" are so implicit + aren't registered into some higher level tool layer.

Unlike /slash commands, skills attempt to be magical. A skill is just "Here's how you can extract files: {instructions}".

Claude then has to decide when you're trying to invoke a skill. So perhaps any time you say "decompress" or "extract" in the context of files, it will use the instructions from that skill.

It seems like this + no skill "registration" makes it much easier for prompt injection to sneak new abilities into the token stream and then make it so you never know if you might trigger one with normal prompting.

We probably want to move from implicit tools to explicit tools that are statically registered.

So, there currently are lower level tools like Fetch(url), Bash("ls:*"), Read(path), Update(path, content).

Then maybe with a more explicit skill system, you can create a new tool Extract(path), and maybe it can additionally whitelist certain subtools like Read(path) and Bash("tar *"). So you can whitelist Extract globally and know that it can only read and tar.

And since it's more explicit/static, you can require human approval for those tools, and more tools can't be registered during the session the same way an API request can't add a new /endpoint to the server.

xg15 1/15/2026||
I think your conclusion is the right one, but just to note - in OP's example, the user very explicitly told Claude to use the skill. If there is any intransparent autodetection with skills, it wasn't used in this example.
RA_Fisher 1/15/2026||
If they made it clear when skills were being used / monitored that, it'd seem to mitigate a lot of the problem.
adastra22 1/15/2026||
It is shown in the chat log.
reactordev 1/15/2026||
Shown after the fact
c7b 1/15/2026||
One thing that kind of baffles me about the popularity of tools like Claude Code is that their main target group seems to be developers (TUI interfaces, semi-structured instruction files,... not the kind of stuff I'd get my parents to use). So people who would be quite capable of building a simple agentic loop themselves [0]. It won't be quite as powerful as the commercial tools, but given that you deeply know how it works you can also tailor it to your specific problems much better. And sandbox it better (it baffles me that the tools' proposed solution to avoid wiping the entire disk is relying on user confirmation [1]).

It's like customizing your text editor or desktop environment. You can do it all yourself, you can get ideas and snippets from other people's setups. But fully relying on proprietary SaaS tools - that we know will have to get more expensive eventually - for some of your core productivity workflows seems unwise to me.

[0] https://news.ycombinator.com/item?id=46545620

[1] https://www.theregister.com/2025/12/01/google_antigravity_wi...

RamblingCTO 1/15/2026||
Because we want to work and not tinker?

> It won't be quite as powerful as the commercial tools

If you are a professional you use a proper tool? SWEs seem to be the only people on the planet that rather used half-arsed solutions instead of well-built professional tools. Imagine your car mechanic doing that ...

fauigerzigerk 1/15/2026|||
I remember this argument being used against Postgres and for Oracle, against Linux and for Windows or AS/400, etc. And I think it makes sense for a certain type of organisation that has no ambition or need to build its own technology competence.

But for everyone else I think it's important to find the right balance in the right areas. A car mechanic is never in the business of building tools. But software engineers always are to some degree, because our tools are software as well.

RamblingCTO 1/15/2026||
But postgres is a professional tool. I don't argue for "use enterprise bullshit". I steer clear of that garbage anyway. SWEs always forget the moat of people focusing their whole work day on a problem and having wider access to information than you do. SWEs forget that time also costs money and oftentimes it's better and cheaper just to pay someone. How much does it cost to ship an internal agent solution that runs automated E2E tests for example (independent of quality)? And how much does a normal SaaS for that cost? Devs have cost and risk attached to their work that is not properly taken into account most of the times.

There is a size of tooling thats fine. Like a small script or simple automation or cli UI or whatever. But if we're talking more complex, 95% of the times a stupid idea.

PS: of course car mechanics built their tools. I work on my car and had to build tools. A hex nut that didn't fit in the engine bay, so I had to grind it down. Normal. Cut and weld an existing tool to get into a tight spot. Normal. That's the simple CLI tool size of a tool. But no one would think about building a car lift or a welder or something.

lpcvoid 1/15/2026||||
You're on hacker news, where people (used to?) like hacking on things. I like tinkering with stuff. I'd take a half working open source project over a enshittified commercial offering any day.
RamblingCTO 1/15/2026||
But hacking and tinkering is a hobby. I also hack and tinker, but that's not work. Sometimes it makes sense. But the mindset is often times "I can build this" and "everything commercial sucks".

> take a half working open source project

See, how is that appropriate in any way in a work environment?

mock-possum 1/15/2026|||
Or more to the point, I get paid to work, not to tinker. I’ve considered doing it on my own time, sure, but not exactly hurting for hobbies right now.

Who has time to mess around with all that, when my employer will just pay for a ready-made solution that works well enough?

manmal 1/15/2026|||
Anyone can build _an_ agent. A good one takes a talented engineer. That’s because TUI rendering is tough (hello, flicker!) and extensibility must be done right lest it‘s useless.

Eg Mario Zechner (badlogic) hit it out of the park with his increasingly popular pi, which does not flicker and is VERY hackable and is the SOTA for going back to previous turns: https://github.com/badlogic/pi-mono/blob/main/packages/codin...

behnamoh 1/15/2026|||
> That’s because TUI rendering is tough (hello, flicker!)

That's just Anthropic's excuse. Literally no other agentic AI TUI suffers from flickers, esp. on tmux Claude Code is unusable.

wiseowise 1/15/2026|||
Huh, nice to see that he has dropped Java. Now if he could only create TS based LibGdx.
Closi 1/15/2026|||
For day-to-day coding, why use your own half-baked solution when the commercial versions are better, cheaper and can be customised anyway?

I've written my own agent for a specialised problem which does work well, although it just burns tokens compared to Cursor!

The other advantage that Claude Code has is that the model itself can be finetuned for tool calling rather than just relying on prompt engineering, but even getting the prompts right must take huge engineering effort and experimentation.

tempaccount420 1/15/2026|||
You would have to pay the API prices, which are many times worse than the subscriptions.
fercircularbuf 1/15/2026||
This is the answer right here as for why I use claude code instead of an api key and someone else's tool.
bogtog 1/15/2026|||
People will pay extra for Opus over Sonnet and often describe the $200 Max plan as cheap because of the time it saves. Paying for a somewhat better harness follows the same logic
rolisz 1/15/2026|||
I've been using Claude code daily almost since it came out. Codex weekly. Tried out Gemini, GitHub copilot cli, AMP, Pi.

None of them ever even tried to delete any files outside of project directory.

So I think they're doing better than me at "accidental file deletion".

imdsm 1/15/2026|||
For what it's worth, Cowork does run inside a sandbox
LaGrange 1/15/2026|||
Ability to actually code something like that is likely inversely correlated with willingness to give Dr Sbaitso access to one’s shell.
singularity2001 1/15/2026||
Found the guy who built Reddit and Postgres himself
bilater 1/15/2026||
I wonder if we'll get something like a CORS for agents where they can only pass around data to whitelisted ips (local, claude sanctioned servers etc).
LetsGetTechnicl 1/15/2026|
Isn't the whole issue here that because the agent trusted Anthrophic IP's/URL's it was able to upload data to Claude, just to a different user's storage?
rkagerer 1/15/2026||
Cowork is a research preview with unique risks due to its agentic nature and internet access.

The level of risk entailed from putting those two things together is a recipe for diaster.

baby 1/15/2026||
We allowed people to install arbitrary computer programs on their computers decades ago and, sure we got a lot of virus but, this was the best thing ever for computing
kmaitreys 1/15/2026||
This analogy makes no sense. Years ago you gave them the ability to do something. Today you're conditioning them to not use that ability and instead depend on a blackbox.
throwawaysleep 1/15/2026||
Is a cybersecurity problem still a disaster unless it steals your crypto? Security seems rather optional at the moment.
Animats 1/14/2026||
> "This attack is not dependent on the injection source - other injection sources include, but are not limited to: web data from Claude for Chrome, connected MCP servers, etc."

Oh, no, another "when in doubt, execute the file as a program" class of bugs. Windows XP was famous for that. And gradually Microsoft stopped auto-running anything that came along that could possibly be auto-run.

These prompt-driven systems need to be much clearer on what they're allowed to trust as a directive.

adastra22 1/15/2026|
That’s not how they work. Everything input into the model is treated the same. There is no separate instruction stream, nor can there be with the way that the models work.
Animats 1/15/2026||
Until someone comes up with a solution to that, such systems cannot be used for customer-facing systems which can do anything advantageous for the customer.
emsign 1/15/2026||
LLMs can't distinguish between context and prompt. There will always be prompt injections hiding, lurking somewhere.
phyzome 1/15/2026||
There's a sort of milkshake-duck cadence to these "product announcement, vulnerability announcement" AI post pairs.
LetsGetTechnicl 1/15/2026|
I know this isn't even the worst example, but the whole LLM craze has been insane to witness. Just releasing dangerous tools onto an uneducated and unprepared public and now we have to deal with the consequences because no one thought "should we do this?"
casey2 1/15/2026|
Pretty much all of the country takes years of formal education. They all understand file permissions. Most just pretend not to so their time isn't exploited.
More comments...