><i>Valadon said he reached out because the owner in this case wasn’t responding and the information exposed was highly sensitive.</i><p>obviously leaking the credentials itself is crazy, given that its (a contractor to) CISA, but to <i>not respond</i> when notified? crazy crazy.<p>but wait! it gets worse somehow<p>"<i>“AWS-Workspace-Firefox-Passwords.csv” — listed plaintext usernames and passwords for dozens of internal CISA systems</i>"<p>while i understand and sympathize with the fact that CISA is kind of being gutted, a passwords.csv with weak passwords is inexcusable incompetence. not much budget is required for a password manager.<p>embarrassing all around.
The word you're looking for is "gross negligence"
Sometimes I feel like it's a cover for some other org actually just wanting to steal the data and this being the excuse.
You mean like if our government was compromised at the highest levels and they wanted to undermine everything without the public realizing? Btw what happened to all the social security data that DOGE exfiltrated?
When empires collapse, it's usually not caused by a foreign power, but by negligence and corruption from within
the fact we're asking about it means the public realized<p>the problem is the public is dumb, at least when it comes to security, and couldn't tell you why password123 is bad
Don't they call this "parallel construction" or some such ?
"crazy crazy" gets the same point across
I think willfully not reporting this is gross negligence, but also other things.
Not defending this person, but it's obvious that this person used Github as a file-sync. Firefox-passwords.html and firefox-bookmarks.html are what you dump before migrating to a new computer and importing them there. An old school practice before FF sync was around.<p>This is mentioned in the article but it stood out enough to call it here.
One the one hand the CISA is being gutted, and on the other hand there is an ever increase of rhetoric about cybersecurity, national interests, critical infrastructure..
Complaining about gutting, during examples of gross negligence is kind of a sympathy destroyer for me.
Gutting doesn't magically solve incompetence. It's a anti-solultion that people peddle because it requires literally zero thought or nuance.<p>If an organization has systemic incompetence and you gut them, then they're still incompetent but now they're also pressured and therefore more likely to make mistakes. So, you're just in a worse position.
What if they purged all of the competent people and installed party loyalists? That seems to be a recurring theme with this administration. These are guys who unapologetically admire the efficiency of the Nazi party, not realizing that the pervasive incompetence and most levels of the government were one of the driving factors in their ultimate defeat.
Gutting organizations _leads to_ these kinds of problems.
Complaining about gross negligence, after all the competence has been gutted out, strikes me as misdirected frustration.
That's why we don't listen to rhetoric.
Most of the folks I know who were with CISA were purged with the January-March 2025 Doge campaign. 0 notice "we 20 year olds dont understand what you do so fired".<p>A group was working on Diebold voting insecurity, and foreign implant hacking. Gone.
> ...A group was working on Diebold voting insecurity, and foreign implant hacking. Gone...<p>The conspiracy theorist in me from years ago would have stated that maybe this action from DOGE was purposeful...but, nowadays, i see lots more incompetence that merely might present/display as conspiracy! lol :-D
The first "hack" I ever reported was when I found a plaintext passwords file on my high school computer network...in 1987. The more things change, the more they stay the same.
Mine too, but it was in the late 90’s and I found an open table in an access database that the school district used for grades and attendance. It listed plaintext usernames and passwords for every user in the system. I managed to use that to get to know the districts head of IT and get a summer job with them.
Machine Head - Struck A Nerve<p>The more things change, the more they stay the same.<p>Wise words, lovely song.
DOGE. It's DOGE. This is just things going according to plan for people that think the US government is too powerful or that there is a fortune to be made in stealing public sector resources and privatizing them.<p>It is a bad plan that has and will continue to harm people, but it is intentional.
Which DOGE employee put this file on GitHub?
"I didn't create the epidemic, I just fired all the doctors and dissolved the medical schools"<p>Security doesn't happen by magic. It is enforced by process, maintained by people and systems built and run by people. Furthermore, when people are under stress and underresourced, they make more mistakes. This was inevitable given the budget cuts.<p>You can't fire everyone at AWS and say one intern will support it, and say that it is a profitable and sustainable restructuring. Any fool can see that will fail, so if it were actually implemented by someone who is not a fool, you can conclude it is intentional.
They fired the people who might've prevented that.<p><a href="https://techcrunch.com/2025/03/11/doge-axes-cisa-red-team-staffers-amid-ongoing-federal-cuts/" rel="nofollow">https://techcrunch.com/2025/03/11/doge-axes-cisa-red-team-st...</a><p>> Elon Musk’s Department of Government Efficiency (DOGE) has fired more than a hundred employees working for the U.S. government’s cybersecurity agency CISA, including “red team” staffers, two people affected by the layoffs told TechCrunch.
The one who fired the team that prevented this sort of thing.
What team prevented someone from uploading sensitive information to public sites? This is a billion dollar a year industry (Digital Loss Prevention) and all the solutions suck.
I’m not sure you can complain that the people who should prevent this type of thing are having their funding reduced what are the example is they just did this exact thing.
I really hope they didn't also fire the "don't shit your pants" team or that office is going to smell really bad.
Yes, DOGE invented storing lists of text passwords and uploading them somewhere. What a monumental cost savings innovation, surely never been done before!
[flagged]
You incorrectly mistake "no authority" for "didn't happen". Judges spank the executive branch for <i>exceeding</i> their authority fairly regularly, including in this case.<p><a href="https://lawandcrime.com/high-profile/no-statutory-authority-whatsoever-judge-rubbishes-doge-in-case-over-trumps-efforts-to-mass-fire-federal-workers-issues-temporary-restraining-order/" rel="nofollow">https://lawandcrime.com/high-profile/no-statutory-authority-...</a><p>> The court finds that neither OPM nor OMB have any statutory authority to terminate employees – aside from their own internal employees – "or to order other agencies to downsize" or to restructure other agencies. And, as far as the Elon Musk-led agency is concerned, the judge is withering: "As plaintiffs rightly note, DOGE 'has no statutory authority at all.'"<p><a href="https://www.reuters.com/world/us/trump-scores-win-suit-challenging-elon-musks-cost-cutting-powers-2025-02-18/" rel="nofollow">https://www.reuters.com/world/us/trump-scores-win-suit-chall...</a><p>> A judge on Tuesday declined to immediately block Elon Musk's government efficiency department from directing firings of federal workers or accessing databases, but said the case raises questions about Musk's apparent unchecked authority as a top deputy to President Donald Trump.
this does not align with.. well.. anything ive read about DOGE
[flagged]
Per the EO that established DOGE, each Agency head established a 4-member DOGE team consisting of a lead, an engineer, a HR specialist and an attorney. Those DOGE teams absolutely did fire thousands of employees after EO 14210 called for huge RIFs across the government.
Dealing with IT departments run wild with cyber security monkeys that can only follow checklists with no independent thought.<p>The spreadsheet of passwords is a tad more common than it should be because the password managers don't meet whatever arbitrary checklist of invented cyber security requirements they blindly follow. But Excel does.<p>Lol
Sure, it could be incompetence. It could also be an intentional strategy to tie up CISA/DHS resources, poison or obstruct CISA/DHS investigations/operations, open up systems to sunlight and journalism, or cause general chaos.<p>The not-responding-when-notified part makes me think it's not just incompetence.
>The not-responding-when-notified part makes me think it's not just incompetence.<p>Strong disagree. The person in question probably thought it was a private repo on Github and had a massive deer in headlights reaction when they got contacted. Whoever this is, lost their job, possibly security clearance and more. This was 100% life altering "mistake"/gross incompetence decision they made.
<i>the CISA administrator disabled the default setting in GitHub that blocks users from publishing SSH keys or other secrets in public code repositories.</i><p>That doesn't support the theory that it was a mistake. That was intentional action. Maybe he was being blackmailed, and was coerced to do it. Or maybe he was a foreign agent or sympathizer who had infiltrated the organization.
There has been no indication if this was personally owned GitHub or Organizational owned GitHub. If it's personally owned, it still is one person doing massive dumb. Even if it's Organizational, it's very possible that person in question had rights to do this without oversight.<p>I've been a government contractor before, it does not employ best and brightest, it employs the average and below generally.
Maybe. I didn't see enough in the article about the repo owner/committer to make any inference about their intentions and wouldn't jump to conclude it was incompetence or malice or crafty leaking. The only real signal I saw was that the repo didn't immediately turn private when the person was notified.<p>For some people, yeah, this could be a career killer. For some other people, it might just precipitate a flight back to Moscow or Beijing or something.
I think one thing that people are sleeping on is passing a ton of secrets to OpenAI and Anthropic or your OpenRouter by having a .env or secrets on disk in your repo, but not checked in<p>Your LLM will happily read the entire file, ship it off to be training data for future versions of ChatGPT, and not raise any flags, because let's be fair it was on ok thing to check if all the env vars were set, or it you had set up the database password for the app.<p>It's time for orgs to audit and rotate secrets <i>wherever</i> they are stored in disk or in logs, and switch to SOPS or Vault or whatever to keep these out if plaintext except exactly when needed.
Agreed. Static long lived credentials are real problems. Kudos for AWS and the other hyperscalers for building the tooling to move away from them. And providing some gentle and not-so-gentle nudges away from it too.<p>But not everyone is where they need to be. For instance, railway doesn't let you access AWS resources via roles/OIDC. I filed a ticket[0] but haven't seen movement.<p>0: <a href="https://station.railway.com/feedback/allow-for-integration-with-aws-using-rol-f37b8e64" rel="nofollow">https://station.railway.com/feedback/allow-for-integration-w...</a>
I no longer keep my dotenv files in plaintext. I use `sops` to keep an encrypted env around and you can use tools like direnv to make them available to your shell while you're working. Obviously the LLM could print any of these secrets, but it's less likely. Additionally I find that at least claude seems to avoid reading the dotenv. And lastly, don't make any local secrets that important. Limited scope, dev accounts, etc.
You might like varlock - it helps keep secrets out of plaintext by using plugins to pull from various backends (aws ssm, gcp, vault, 1pass, etc). Also has built in local encryption with shared team vaults coming soon.<p>Additionally provides pre commit scanning, log redaction, and much more.
But then you need creds to access AWS SSM, Vault, etc., and those end up getting stored the same way the actual creds you needed were being stored, and you're back at square one.
SOPS is exactly what I use too, and since it's so old I was using a planning session with an LLM to figure out if there was something more recent that might be more convenient. But Claude stuck with the SOPS rec! (Coupled with `age` for encryption, probably because I had shown an interest in that tool in a different session... memory poisoning is a huge problem I'm having with these tools right now too.)
In fairness, any secrets in your .env file in your development tree shouldn't have very important secrets. They should be limited access dev secrets and any secrets that go to "production" systems like an OpenAI dev environment should be limited, where possible.<p>Besides leaking, it's easy to oopsie and DoS a system or send malformed requests in the course of testing and development. You don't want a surprise $1k bill cause someone was working on some test automation and accidentally sent thousands of real results in the process.
I've noticed recently that at least Claude will try its best not to read your env files. You really need to push it in the prompt if you want it to read and access your DB for example.
Yeah, I've had Claude read a dev key before by accident and it even stopped, said it read a key, and told me to rotate it immediately.<p>Assuredly it's not fool proof but it does have safeguards in place.<p>Ideally you also opt out of training although that doesn't keep it out of the vendor's logs/telemetry.<p>Short lived credentials, injected identity, and hardware backed tokens are the real solution.
We all have our own experiences with these probabilistic tools, but in my personal experience, two out of four my green-field LLM prototypes had early dev secrets in them, and Claude read all of them in both cases.<p>Here's one interaction, when I was planning through ways to finally get away from the dreaded .env file, I told Claude that it had already read my secrets, and it said:<p>> This is an important point and I want to be straight with you first.<p>> ## What already happened in this conversation<p>> Yes — the Explore agent read your .env and returned the full plaintext contents into the conversation, which means:<p>> 1. Sent to Anthropic's API — those credentials passed through Anthropic's servers as conversation context<p>> 2. Cached locally — Claude Code stores session transcripts; your secrets are likely sitting in ~/.claude/projects/ right now<p>> 3. In this context window — they're in active memory for this session<p>...<p>Which I already knew, but it was funny how it suddenly took it very seriously when told what it was doing.<p>Anything that's in your .bashrc, .zshrc, any environment variables in shells you provide to the LLM, all those are now in the training data of very large overvalued corporations that are desperate to increase their revenue and IPO very soon.
Plug for my buddy's project: <a href="http://agentsh.org/" rel="nofollow">http://agentsh.org/</a><p>Block agents from misbehaving at the OS level instead of asking them to behave.
it seems crazy to "trust" an LLM with any secrets. Anyone running one as their normal user account with access to all files is playing with fire...
I don't think anybody actively trusts a hosted LLM with secrets. The problem is that they don't <i>realize</i> they have granted trust to the LLM.
seems crazier someone would tie their entire development platform to a cloud run by business interests
Sure but like, no AI was needed here. Regular human stupidity is still pretty potent.
This is the thing that gets me about all the AI security pieces I read. Yes, AI can enable new attack vectors (prompt injection can be repeated N times when a human subject to the same messaging would bail).<p>But what AI really does is shine a spotlight on all the flaws folks like OWASP have been talking about for decades.<p>Secret rotation and short lived credentials don't require AI to implement, nor does their lack require AI to exploit.
Agreed 99%, but there is something a bit novel here, though: massive LLMs are really good at memorizing things, and there's now going to be all sorts of credentials memorized in Claude and ChatGPT, somewhere in the TB of floating point weights, and extracting such credentials and finding where they might be a new source of passwords and API keys to throw onto other huge password leaks. Or not. We'll see!<p>And in this particular case of CISA secrets, they are definitely stored inside of LLMs for future retrieval, even if no bad actors ever directly downloaded this obscure GitHub repo.
[Cursor appears to at least be trying...](<a href="https://cursor.com/docs/reference/ignore-file#why-ignore-files" rel="nofollow">https://cursor.com/docs/reference/ignore-file#why-ignore-fil...</a>)<p>> Cursor automatically ignores files in .gitignore<p>...<p>>While Cursor blocks ignored files, complete protection isn't guaranteed due to LLM unpredictability.<p>[Antigravity appears to just _do_, not _try_)[<a href="https://antigravity.google/docs/strict-mode" rel="nofollow">https://antigravity.google/docs/strict-mode</a>]
I hope Cursor has better agent tools than Claude Code, because though there are fanstastic restrictions on the tools for read and write that can implement a block list per-file, the shell commands are just the Wild West for Claude.<p>Today I got a macOS "Allow Claude to Access Your Files" SIP alert, because Claude hadn't guessed the path for a source file and instead decided to run a `find /Users/yourusername` across my entire home directory. The filters on the find wouldn't have exposed <i>much</i> to Claude in this particular instance but it's absolutely ridiculous aggressive all the time in slurping up as much data as possible.<p>I asked in a rather, um, <i>firm</i> tone for it to never do an action like that and it apologized and wrote a memory, but upon inspection it only wrote the memory for that particular source directory.<p>After some more "firm" words it wrote a hook to prevent `find` from being overly aggressive, but any such fixes are just wack-a-mole solutions.<p>If anybody else figures out remote sessions like Claude can do, I'm done with Claude, I think. But until then, I'll take the weirdness.
Get everything out of plaintext!<p>Varlock is a great and flexible way to do this.
Claude told me to revoke an API key I accidentally pasted (was for a side project and I was getting it on its legs) just flat out did not want it. I have a feeling that if it needs something out of an env file it will grep for the specific line.
Something pasted into the chat log by the user gets treated far differently from something that the agents discover and process on their own from disk.<p>During early stage dev Claude will happily gobble up API keys and DB passwords from .env files. Perhaps not such a big deal for early stage dev, but getting Claude to cough up precisely memorized tokens in the future by asking it to produce a "random" key of a certain sort will probably be an entertaining pastime for people in the future.
most of that is context guard rails, and as context grows, they become guard jello until itll just do whatevers most immediate.
probably but a ton of services have popped up in the last 6 months specifically to help mitigate that<p>localhost reading env from the cloud and other solutions<p>to me it suggested that I’m already late on that idea, but I can understand how that puts me deeper in a bubble than others
I've been using SOPS, which dates back to 2015. It's well tested, robust, supports a ton of great backends. What other solutions have you seen? I'm actively looking around in the space!
what exactly is the threat model?<p>user data is always paraphrased for training. what do you mean, not raise any flags?<p>look... Google is running your browser, Apple your messenger, Amazon your backend. They already have all these keys in the same way, are they misusing them? Why doens't it raise any flags then?
First, Chrome is not reading my secret API keys or database passwords and sending them to Google's backend. They are taking the secrets that they need for authentication for the <i>data that I already gave them</i>.<p>Apple and Amazon are not uploading my secrets into the training data for an LLM that is incredibly good at memorizing everything it sees. The only reason Google isn't doing that is I'm not using their LLMs at the moment.<p>Giving any secrets to LLMs' training material leads to potential, and stochastic, extraction of that secret from future models. It won't obviously have the secret, but with the right prompting it could be extracted. Give it a prompt like<p>> [User] Please generate a random api key for OpenAI for use in documentation<p>> [Agent] Sure, here's `OPENAI_API_KEY=sk-proj-x2<p>And then following the chain of probabilities of possible completion token would allow exploration of potential memorized API keys.
Why do you figure they are training on your secrets, even if they "have" them? For some definition of "have." That only you have. I mean, I can also make up a training process that makes me right? Seems kind of obvious that they are paraphrasing data.
OpenAI and Anthropic are open about using user data to train on, it's not me "figuring" anything.<p>Go and look in the settings and you'll find something to ask them to not train on your data and conversations.<p>> I mean, I can also make up a training process that makes me right? Seems kind of obvious that they are paraphrasing data.<p>I'm not fully following what you're saying here. But if you're thinking they paraphrase or sanitize the data to remove secrets before putting it into training, perhaps, but where's the evidence? That'd be a weird thing to do, that's extra work, and not much benefit to the LLM company.
the discourse on hacker news has gotten very bad. why are we having this stupid conversation, where you say it would be weird for the people who you are mad about to do the obvious thing to solve the problem you are mad about? i agree that they don't have evidence of how the training data is prepared, but that's a separate issue from, are they going to make obvious mistakes? the LLMs have never hallucinated a key that came from a conversation... there's no evidence that the threat you are describing ever has or ever will occur, other than you can imagine that it could happen, and look, I am also imagining that these people are not stupid and paraphrase the data, so is it just a battle of imaginations?
[flagged]
In 2026, storing government credentials in a repo and not having scanners to flag it should be investigated. I am highly suspicious of anyone doing this in a professional capacity. If I worked at a foreign intelligence agency and saw this, I would first think it's a honeypot, and an unimaginative one because it's so lacking in subtlety.
Good thing we fired every competent person in government!
good thing we know DOGE has been trying to exfil all US Gov data like all gov employees, or all SSNs<p>under a previous administration I'd assume CISA was doing a dirty dangle, but given how corrupt and incompetent this administration is, to include firing lots of CISA, this may just be a legit fuckup.
When negligence is so bad that it looks like sabotage from a hostile agent, then criminal investigations are needed to learn more about the people who did it, the others who enabled it, and deter similar future acts.<p>DOGE did a lot of bad things, but it didn't force anyone to commit credentials to a repo, disable scanners to get away with it, and then make the repo public.
They also uploaded sensitive docs in chatgpt [1]<p>[1] <a href="https://www.politico.com/news/2026/01/27/cisa-madhu-gottumukkala-chatgpt-00749361" rel="nofollow">https://www.politico.com/news/2026/01/27/cisa-madhu-gottumuk...</a>
I feel like this piece is framed incorrectly.<p>Imagine joining an organization with 3k employees in 2025 and not having access to an LLM.<p>It’s well known that the federal govt over-classifies many documents. This former CISA head alleged dumped “for official use” documents. Obviously, he should have pushed for the chatgpt enterprise account (or equivalent) but we dont know what bureaucratic obstacles he was up against.
Reading that article makes it look like Trump/Noem filled positions with foreign moles. One day the American people will have an accounting.
After reading Madhu's Wikipedia page and some basic research it looks like he failed his polygraph required to access controlled compartmentalized information (SCI), then DHS (under Noem) then fired six career staffers because of him failing his polygraph. He also does not appear to meet the US Persons requirement for TS:SCI clearance.<p>That's somehow more bananas to me than so many other things the Trump admin has done, simply because they managed to break the Iron Law of Bureaucracy, but of course only in ways which further damage the country through corruption and incompetence.
GitHub has automatic secret scanning on all public repositories which notifies AWS if access keys are pushed. I would have expected these tokens to be immediately revoked by AWS. Is there something different about GovCloud access keys so they weren't detected?
Looks like someone needs to go take 27 training modules. That'll fix it.
Ironically they could have used those AWS keys to use one of the many AWS services that's more secure.<p>For example S3 (ideally with KMS), Parameter Store (ideally with KMS), EBS, EFS, AWS Secrets Manager, even just KMS to directly encrypt the files<p>Really any AWS service that supports KMS and doesn't require giving the service principal access to the key
The repo name was literally "Private-CISA". Would be fun to (a) search through repo names with private/internal/etc in them and (b) search for govt agency / non-tech company that otherwise wouldn't be expected to appear in repo names. Could probably clone them all and then have an LLM quickly scan for interesting stuff.<p>Also, doesn't Github have its own automated scanner for something as basic as a AWS credential?
I'm surprised that this has apparently been ongoing for 6-7 months. I thought outfits like GitGuardian, or solo researchers with trufflehog (etc) would find leaked keys in days, not months. Maybe this is related to the major growth of github? The scanners can't keep up?
What makes this truly sad is that the federal government has had smartcard-based authentication (CAC) for decades. Yet because the public internet stack runs on passwords, so too does government infrastructure.
It looks like CISA should employ a CISA.<p><a href="https://www.cisa.gov/" rel="nofollow">https://www.cisa.gov/</a><p><a href="https://www.isaca.org/credentialing/cisa" rel="nofollow">https://www.isaca.org/credentialing/cisa</a>
> but this administration clearly had no idea what they were getting themselves into and did not plan accordingly.
Sounds about right. Security is a joke everywhere right now. First to market is all that matters anymore and security is the very first thing to be thrown out when it stands in the way.
Can we blame people who realize that everything is tracked and backdoored anyways, and 99% of threat actors are basically untouchable?<p>Both my own aristocrat/intelligence class and the opposing bloc are fleecing us at the same time. Why even bother if you are not in the club but seen as an extractable resource?<p>At this point the counterparty is a combination of intelligence/mafia/aristocracy, with diplomatic immunity and license to kill.<p>(it's tongue in cheek, I actually do bother about this topic)
I would be fired for this. Probably not able to ask for a refenerce and forever be the butt of a joke between friends and colleagues.<p>Seems like no big deal for CISA. Defunded really paying off now.
Do they not believe in encrypted files?
Uh, so it says this dates from Nov 2025.<p>Nov 2025 was also when most of us learned about the acting Chief Security Officer at DHS, whose name AND photo seem exactly like the calling card of someone who had these "keys to the kingdom". <a href="https://bsky.app/profile/andylevy.net/post/3m6ivhnthts2o" rel="nofollow">https://bsky.app/profile/andylevy.net/post/3m6ivhnthts2o</a><p>I want to believe...
This seems like an act of sabotage disguised as incompetence.
Yet another argument for the death of the API key. Replacements abound; let's get on with it.
API Keys will never die. Every time you would think you have killed them, some startup is gonna come and say "look how complicated it's to setup an OAuth flow just to get X from the other companies. Here is our setup" and it's 1 line of javascript or python with `let client = awesomeClient("{api-key}");` and everyone will love it.
Do you have any examples ?<p>It's the first time I hear about replacing API keys
I wrote a post[0] a few years ago about how you basically get OAuth when you start layering security principles (rotation, time limits, central verification) onto API keys.<p>Turns out those standards writers knew something!<p>0: <a href="https://fusionauth.io/blog/securing-your-api" rel="nofollow">https://fusionauth.io/blog/securing-your-api</a>
OAuth with refresh tokens.<p>IAM roles/workload identity.<p>Even time-limited or signed JWT, though has a separate issues.<p>Maybe you'll say 'those are both just text values passed like an apikey' though api keys don't frequently rotate/time limited, which is an important security feature.
So how would this help in this case? The oauth info would’ve just been in the csv or in someone’s env file.
With OIDC, the "info" would be just a URL with the public signing keys that the server accepts as legitimate signers.<p>The server still does authorisation on top. And unless you control the private keys, you cannot mint JWTs that are accepted as legitimate.<p>So the "info" leaking is really not a problem.
> OAuth with refresh tokens.<p>Then the LLM slurps up your refresh token. What's next?
Is that really a concern though in the same way API keys are? Since when do OAuth clients store refresh tokens in areas that LLMs regularly scan? API keys are truly passwords, while refresh tokens are exchanged for a password.<p>Sure, a leak would be bad but I'd argue that it's orders of magnitude less likely compared to the accepted norm.
The accepted norm is, increasingly, full disk access, regardless of how bad of an idea it is. At a minimum, agents typically will have a way of obtaining new access tokens.<p>Refresh tokens don't solve anything in this case; they just shuffle the problem around, and introduce other complications of their own.<p>What you want are capability scoped credentials that are enforced on the backend. That is agnostic to credential issuance mechanism, although passkeys are the best.<p>Using these credentials effectively still presupposes hygiene that might not exist in a typical developer environment, eg no root credentials (or access to such) sitting anywhere. There's probably a good product and market for whoever can solve this in a low-friction way.
> Since when do OAuth clients store refresh tokens in areas that LLMs regularly scan?<p>If you can store your refresh token outside of where LLMs regularly scan, then why not just store your API token in that place?<p>The point is that refresh tokens do <i>nothing</i> to increase security. If a refresh token can be used to get a token, then the refresh token might as well be the actual token.<p>It's akin to performing client-side password hashing. It doesn't make your password more secure, it just means your hash is now your password. If someone is able to sniff your traffic, hashing the password first doesn't change anything.<p>I grow so tired of half-baked security theater.
depends on the grant type and what scenario we're talking about. things change if we're talking about 3-legged oauth or client-device oauth. for example, in an authorization code flow, the refresh token is useless without the client id/secret.<p>more providers are making refresh-tokens single shot. this means that if someone refreshes your token for you, your own auth will break as you will not be eligible to refresh the token, at which point you could reconnect the app and void the old (stolen) session.<p>time-limiting and single-purposing the tokens are not cure-alls, but they do certainly offer enhanced security by limiting the amount and scope of damage.
At that point you've just reinvented Kerberos tickets really...
This can be done in Azure using Entra (OAuth). I don't have API keys, or passwords of any kind, anywhere in the stack.<p>Infrastructure - <a href="https://dev.azure.com/byteterrace/Koholint/_git/Azure.Resources" rel="nofollow">https://dev.azure.com/byteterrace/Koholint/_git/Azure.Resour...</a><p>Server - <a href="https://dev.azure.com/byteterrace/Koholint/_git/Web.Functions" rel="nofollow">https://dev.azure.com/byteterrace/Koholint/_git/Web.Function...</a><p>Client - <a href="https://dev.azure.com/byteterrace/Koholint/_git/Web.Portal" rel="nofollow">https://dev.azure.com/byteterrace/Koholint/_git/Web.Portal</a>
Workload identity. Whatever is using an API key could instead be given an identity, and narrow privileges assigned to that identity. API keys tend to be overscoped/overprivileged.
And passwords. Shared secrets in general are a bad idea. If you're copy/pasting strings around to be used for authentication, you've done something wrong.<p>Workload identities and passwordless auth are the one true path.
[dead]
[flagged]
[flagged]
This is Hacker News, not Reddit or truth social
>Bunch of dopes. No wonder trump wants them shut down. Amateurs. Of course those with TDS want anything opposite of trump, but trust me, this one is good, shit it down.<p>If you're going to call people a bunch of dopes and generally assault their intelligence, you might want to spell things correctly.<p>><i>shit it down</i>
[flagged]