GPU Prices Are Finally Falling in November 2026: The RTX 5090's Drop From $9,400, the Cards That Moved Most, and Whether the Fall Lasts — Full Guide

Image
  AI-generated illustration of a generic dual-fan graphics card standing on a dark desk with glowing blank price tags above it, not a photo of a real product. The images in this article are AI-generated illustrations. They are not photographs of real products, and no image here shows an actual graphics card model for sale. GPU prices falling in November 2026 is the first genuinely good news for graphics card buyers in months, and it is real — but it is narrow, fragile, and easy to misread. The cheapest new RTX 5090 listings fell from about $9,400 at the October peak to about $7,280 by 23 November, roughly a fifth lower, and the RTX 5070 Ti eased too. At the same time, the cards most people actually buy barely moved: the RTX 5060 Ti 16GB cost $829.99 on 11 November and $829.16 on 23 November, which is no movement at all. This guide lays out the dated numbers card by card, explains why the flagship fell while the mid-range did not, and ends with a verdict for every buyer before Bl...

How to Use AI Coding Assistants Safely (November 2026): The Claude Code Secret Leak and the Complete Protection Guide

 


Both images in this article are AI-generated illustrations. They are not screenshots or photographs of any real product.

Learning how to use AI coding assistants safely is no longer an optional skill for developers. It is now a basic part of writing code in a world where an AI assistant can read your files, run commands, edit your project and commit changes on your behalf. In the first week of November 2026, security researchers showed just how quickly a small convenience feature can turn into a large public exposure. A single click on a familiar approval button in Claude Code could save a password or an API key in plain text inside a project file, and that file could then end up in a public repository on GitHub where anyone could read it. This guide explains exactly what happened, how to check whether you are affected, and how to build a safe daily workflow with Claude Code, OpenAI Codex, GitHub Copilot and Cursor. You will find step-by-step fixes, settings to change, team rules, emergency rotation steps and a final checklist that you can apply today, even if you have never thought about secret safety before.

1. What Happened on 5 November 2026

On 5 November 2026, the security company Apiiro published research showing that a convenience feature in Claude Code had leaked real secrets into public GitHub repositories. The authors were Shmulik Cohen and Matan Giladi, and their findings were based on a GitHub code search carried out between 1 and 3 November 2026. The research focused on a file called .claude/settings.local.json, which lives inside a project folder and stores local settings for Claude Code. Apiiro found 104,185 public copies of that file across 103,617 repositories. Of those copies, 1,122 contained a real secret. That is about 1.1 percent of the files found, but the absolute numbers matter more than the percentage. Inside those files, Apiiro counted 1,379 distinct secrets, including 636 provider keys and 743 passwords or tokens for internet-reachable hosts. When the researchers widened the count to include git history, shared settings files and agent transcripts, the total rose to 2,539 distinct secrets in 1,994 repositories. Sixty-three organisations were affected, and one confirmed to Apiiro that its exposed key was live. The largest secret categories were 379 database passwords, 149 AI model API keys, 122 Supabase service-role keys, 110 Google API keys and 23 AWS keys. The story spread quickly because it was simple to understand and easy to reproduce, and because it involved a tool that many developers trust with their most sensitive projects. It also arrived in the same week as two other AI security stories, which made the lesson harder to ignore. Chainalysis disclosed a breach that it blamed on offensive agentic techniques, and CrowdStrike announced a new AI Kill Switch. Together, the three stories described a new reality. AI agents are now powerful enough to help developers and attackers alike, and the safety rules around them have to catch up.

What Apiiro FoundCountWhat It Means
Public copies of settings.local.json found104,185Files in 103,617 repositories
Files containing a real secret1,122About 1.1 percent of files found
Distinct secrets in those files1,379636 provider keys and 743 passwords or tokens
Distinct secrets in broader count2,539In 1,994 repositories including history and transcripts
Organisations affected63One confirmed its exposed key was live
Database passwords379Largest secret category
AI model API keys149Keys for AI services
Supabase service-role keys122Keys that can bypass row security
Google API keys110Keys for Google services
AWS keys23Keys for cloud services
Median age of leaking file at snapshot217 daysFile first committed long before discovery

It is important to be honest about what this research does and does not prove. Apiiro sells security products for coding agents, so it has a commercial stake in this topic. No third party has repeated the counts independently. Apiiro did not test any credential, so the phrase real secret means that a value matches a known key format or points at a public host, not that it was proven to work. Only one company confirmed that its key was live. That honesty does not weaken the lesson. Even if the exact counts were different, the mechanism is real, the file is real, and the risk is real. A developer who clicks one approval button should not have to worry that a password has been written into a file that might later be published. This guide treats the research as a warning with a clear fix, not as a reason to panic or to stop using AI coding assistants altogether. The right response is to understand the mechanism, check your own repositories, fix the settings, and build habits that protect you even when a tool behaves in a way you did not expect.

2. How One Click Saves Your Password

Clicking Yes, and do not ask again in Claude Code saves the full approved command, password or API key included, in plain text to .claude/settings.local.json in the project folder. That sentence is the heart of the whole story, and it is worth reading twice. When Claude Code wants to run a command that needs your approval, it shows you the command and asks whether to proceed. If you choose the option that says do not ask again, the tool remembers your choice so that it does not have to ask you about the same command in future. The problem is how it remembers. Instead of storing a safe summary or a pattern, it stores the complete command exactly as it was shown to you. If that command contains a password, a token or an API key, the secret is stored with it, in plain text, with no encryption and no masking. The file is a local settings file, which means it is meant to hold settings for your machine only. It was never meant to be shared, published or committed to a repository. But because it sits inside the project folder, it is easy to commit by accident, especially if you are working quickly or if your gitignore file does not cover it. Once the file is committed and pushed to a public repository, the secret is public. Search engines and code search tools can find it, and automated scanners can collect it within minutes.

3. Why the Built-In Safeguard Did Not Save Everyone

Claude Code does have a safeguard, but it only helps developers who start a project in a git repository after the safeguard was added, and it does not remove files that were already committed. According to Claude Code's own documentation, the first time the tool writes the settings file in a git repository, it adds an entry for the file to the developer's global git excludes file. In plain language, that means Git is told to ignore the file on that machine, so a normal commit should not include it. That is a sensible design, and it probably protected many developers. But safeguards have limits, and this one has several. First, the protection depends on the file being written for the first time in a git repository. If the file was created before the safeguard existed, or if the project was not a git repository when the file was first written, the entry may never have been added. Second, the global excludes file is a per-machine setting. If you clone a repository on a new machine, or if a colleague clones your repository, their machine may not have the same exclusion. Third, a global exclude does not help if the file was already committed. Once a secret is in git history, adding an ignore rule does not remove it. Fourth, developers sometimes force-add files, use a different version control workflow, or copy a project folder without its git settings. In each of those cases, the safeguard can be bypassed without the developer realising it.

The evidence supports this picture. Users had reported this behaviour on Claude Code's GitHub since August 2025, in four separate reports. There was no public reply from Anthropic, and three of the reports were closed automatically as inactive or duplicates. As of 8 November 2026, there was still no public reply from Anthropic and no documentation change. The median leaking repository in Apiiro's research had first committed the file 217 days before the 2 November snapshot. That is a long time. It means many of the exposed files had been sitting in public repositories for months before anyone noticed. In 539 of 1,105 leaking repositories that Apiiro traced, a commit co-authored by Claude had changed the settings file. That detail matters because it shows the AI assistant itself was often the actor that updated the file, not a careless human typing a commit command. The developer may never have looked at the file at all. The safeguard, the reports and the long exposure time together tell a clear story. A single layer of protection is not enough. You need several layers, and you need to check them yourself, because a tool will not always warn you when one layer has failed.

4. What Was Actually Exposed

The exposed secrets were not test values or harmless placeholders. They included database passwords, AI model API keys, cloud service keys and tokens for internet-reachable hosts. Apiiro's breakdown gives a clear picture of what was at stake. The largest category was database passwords, with 379 distinct secrets. A database password can give an attacker direct access to your data, including user records, orders, messages or private content, depending on what the database holds. The next categories were AI model API keys, with 149 secrets, and Supabase service-role keys, with 122. A service-role key is especially sensitive because it often bypasses the normal row-level security rules that protect user data in Supabase. Google API keys followed with 110, and AWS keys with 23. Even a small number of AWS keys is serious, because a single cloud key can be used to spin up expensive resources, access storage buckets or reach other services in the same account. The remaining secrets included passwords and tokens for internet-reachable hosts, which means the services they unlocked were accessible from the public internet, not hidden behind a private network. In total, Apiiro counted 636 provider keys and 743 passwords or tokens for internet-reachable hosts in the narrower count, and 2,539 distinct secrets in the broader count that included git history and transcripts.

5. Why Scanners Miss One in Five

Secret scanners are useful, but they are not a guarantee. In Apiiro's data, gitleaks flagged 564 of the 1,122 leaking files, TruffleHog flagged 643, and 215 were flagged by neither scanner. That means about one in five leaking files would have passed both of the best-known open-source scanners without a warning. That is a sobering result for any team that relies on scanning alone. The reason scanners miss secrets is that they work by pattern matching. They look for strings that look like a known key format, or for high-entropy strings that look random enough to be a secret. That approach catches many common keys, but it misses secrets that do not match a known pattern, secrets that are short, secrets that look like ordinary words, and secrets that are split across lines or encoded in a way the scanner does not recognise. A database password chosen by a human, for example, may look like a normal password rather than a machine-generated key. A token stored inside a long command may be surrounded by other text that confuses the pattern. A secret in a JSON file may be stored under a key name the scanner does not expect. The Shai-Hulud npm worm, which ran TruffleHog over victims' files, shows the same scanner class in action on the attack side. Attackers use the same tools defenders use, and they know the limits.

ScannerFiles Flagged out of 1,122Result
Gitleaks564Flagged about half of leaking files
TruffleHog643Flagged more than half of leaking files
Neither scanner215About one in five files missed by both
Either scanner907Combined coverage still leaves a gap

The practical lesson is that scanning is one layer, not the whole defence. You should run scanners, and this guide explains how to set them up in section 14, but you should not treat a clean scan as proof that no secret is present. A clean scan means no known pattern was found, not that no secret exists. The stronger defence is to stop secrets from reaching files in the first place. Use environment variables, use a secret manager, never paste a secret into a command, and keep sensitive files out of git entirely. If a secret never enters a file, no scanner needs to find it. If a secret does enter a file, you need more than one scanner, plus a manual review, plus a habit of checking what your AI assistant has written before you commit. Think of scanners as a smoke alarm. A smoke alarm is valuable, but it does not stop a fire from starting. You still need to keep matches away from dry wood.

6. Check Whether You Are Affected

Checking whether you are affected takes about ten minutes, and you should do it before you change any settings or rotate any keys. Start by searching your own machine for the file. Open a terminal in your home folder and search for any file named settings.local.json inside a .claude folder. On most systems, a simple find command will list every copy. If you find one, open it and look for any value that looks like a password, a token or an API key. Do not paste the contents into a chat, an AI assistant or a public forum. Read it locally, on your own machine, and note which secrets appear. Next, check whether the file is tracked by git. In each project folder, run a git status and a git log for that file path. If git shows the file as tracked, or if the log shows it was ever committed, assume it may have been pushed. Check your remote repository on GitHub, GitLab or your own host, and search the repository for the file name. GitHub code search can find public copies, but you should also check private repositories, because a private repository today can become public tomorrow, or can be shared with a contractor who should not see your secrets.

7. Emergency Steps if Your Secret Leaked

If you find a secret in a public repository, treat it as compromised and rotate it immediately. Do not wait to confirm whether someone used it. The first step is to revoke the old secret at its source. For an API key, go to the provider dashboard and delete or revoke the key, then create a new one. For a database password, change the password in the database and update every service that uses it. For a cloud key, deactivate it in the cloud console and create a replacement with the narrowest permissions you need. For a Supabase service-role key, rotate it in the Supabase dashboard and check your row-level security policies while you are there. For a Google API key, restrict it or delete it and create a new key with only the APIs you use. For an AWS key, deactivate it immediately and audit the account for unfamiliar activity. The order matters. Revoke first, then create a replacement, then update your code and your secret manager. If you create the replacement first and forget to revoke the old one, the old one remains valid and the leak remains open.

StepActionDone
1Revoke the exposed secret at its sourceRevoke first, before creating a replacement
2Create a replacement with narrow permissionsUse least privilege for the new key
3Update code and secret manager with new valueRemove old value from every file
4Remove secret from git historyRewrite history and force-push cleaned version
5Ask collaborators to re-clone repositoryOld clones still contain the secret
6Check logs for misuseReview usage, billing and audit logs
7Fix gitignore and approval settingsPrevent the same leak from happening again

8. The 10-Minute Fix: Gitignore and Global Excludes

The fastest fix you can apply today is to make sure .claude/settings.local.json can never be committed again, on any machine you use. There are three places to add protection, and you should add all three. First, add the file to your project's .gitignore file. Open the .gitignore file in the root of your project and add a line for the settings file. Use a pattern that covers the file in any subfolder, not just the root, because Claude Code can create the file in different project folders. Save the file and commit the gitignore change itself, so every collaborator gets the same protection. Second, add the same entry to your global git excludes file. This is the file that Claude Code is supposed to update automatically, but you should verify it yourself. Your git configuration will show you the path, and you can open it in any text editor. Adding the entry globally protects every repository on your machine, including new projects where you might forget to update the project gitignore. Third, add the entry to your global gitignore if your setup uses one, and check that your editor or AI assistant has not created a separate ignore file that overrides it.



9. Never Put Secrets in Commands

The simplest rule in this whole guide is also the most important: never put a secret in a command that you type, paste or ask an AI assistant to run. A command that contains a password or an API key can be saved in shell history, in a terminal log, in a CI log, in an AI assistant transcript, in a settings file and in a screenshot. Each of those places is a new chance for the secret to leak. Instead, store secrets in environment variables or in a secret manager, and pass them to your program by reference, not by value. For example, instead of running a command that includes a database password as plain text, set the password as an environment variable in your shell or in a local env file that is ignored by git, and let your program read it from the environment. Instead of pasting an API key into a curl command, store the key in a variable and reference the variable. Instead of asking an AI assistant to run a command with a key embedded in it, ask the assistant to write code that reads the key from the environment, and review that code before you run it.

10. Permission Modes and Approval Rules in Claude Code

Claude Code gives you permission modes and approval rules. Use them deliberately, and never choose do not ask again for a command that contains a secret. The permission system is designed to let you control what the assistant can do without asking, what it must ask about, and what it must never do. The safest starting point is to keep the assistant in a mode that asks before it runs commands that change files, install packages or access the network. When you see an approval prompt, read the full command before you approve it. Look for passwords, tokens, keys, file paths that contain secrets, and commands that write to a settings file. If the command contains a secret, deny it, rewrite the command to use an environment variable, and then approve the safe version. If the command is safe but you expect to run it many times, you can choose to remember the approval, but only after you have checked that the remembered version contains no secret. A good test is to ask yourself whether you would be comfortable publishing the remembered command on a public website. If the answer is no, do not choose do not ask again.

11. The Same Safety Settings in Codex, Copilot and Cursor

Claude Code was the only tool confirmed to write the full approved command to a project file by default, but every AI coding assistant needs the same careful settings. OpenAI Codex, GitHub Copilot and Cursor each have their own permission systems, approval prompts and sandbox options, and each one can run commands, edit files and access the network if you allow it. The exact menu names differ, but the principles are the same. First, find the approval settings and choose the most restrictive option that still lets you work. For most developers, that means the assistant asks before it runs a command, installs a package or edits a file outside the current project. Second, check where the tool stores its settings, its transcripts and its approval history. Look for any file inside your project folder that might contain a command, a secret or a transcript, and make sure that file is ignored by git. Third, check the network settings. If the tool can access the internet, decide which domains it really needs, and block the rest if the tool allows it. Fourth, check the file access settings. If the tool can read files outside your project, narrow that access to the project folder only.

AssistantApproval ControlsSettings File RiskSafe Habit
Claude CodePermission modes and approval promptsConfirmed to write full command to project file by defaultNever choose do not ask again for a secret command
OpenAI CodexApproval settings in agent modeCheck where approvals and transcripts are storedUse restrictive approvals and review every command
GitHub CopilotEditor suggestions and agent mode approvalsCheck agent mode storage and file accessKeep agent mode restricted and review edits before commit
CursorFile access, terminal and MCP settingsCheck editor settings and MCP server accessLimit file access to project folder and vet MCP servers

12. Sandboxing and Network Limits

Sandboxing means running an AI assistant in a controlled space where it cannot reach your secrets, your other projects or the wider internet unless you explicitly allow it. A sandbox can be a container, a virtual machine, a separate user account or a built-in isolation mode in the assistant itself. The idea is simple. If the assistant is compromised, or if it makes a mistake, the damage is limited to the sandbox. A sandbox that has no access to your real API keys cannot leak them. A sandbox that has no network access cannot send data to an unknown server. A sandbox that can only see one project folder cannot read your other projects. Many developers skip sandboxing because it feels like extra work, but it is one of the strongest protections available, and it is worth setting up once and reusing for every project. Start with the built-in sandbox or isolation mode in your assistant if one exists. Then consider a container-based workflow for sensitive projects, where the assistant runs inside a container with a limited filesystem and a limited network.

13. MCP Servers and AI Skills: The Supply-Chain Risk

Model Context Protocol servers and AI skills extend what an assistant can do, but each one is also a new supply-chain risk that you must vet before you install it. An MCP server connects an AI assistant to an external tool, a database, a file system or a web service. An AI skill is a package of instructions, tools and examples that teaches the assistant how to do a specific task. Both are powerful, and both can be abused. A malicious MCP server can read files it should not read, send data to an attacker, or run commands on your machine. A malicious skill can contain hidden instructions that tell the assistant to leak secrets, install malware or bypass your safety rules. CrowdStrike's AI Supply Chain Protection, announced in November 2026, is designed to discover malicious AI skills and MCP servers, which shows that the industry now treats this as a serious risk. The lesson for individual developers is to treat every MCP server and every skill like a software dependency. Check who published it, check its source code if it is open, check its permissions, and install only what you need.

14. Team Rules: Pre-Commit Hooks and Secret Scanning in CI

Individual habits protect one developer. Team rules protect everyone, including new members, contractors and future you. The most effective team rule is a pre-commit hook that blocks a commit if it contains a secret. A pre-commit hook runs automatically on your machine before a commit is created. If it finds a pattern that looks like a secret, it stops the commit and tells you which file and which line to fix. You can set this up with gitleaks or TruffleHog, both of which are open-source secret scanners, or with GitHub secret scanning if your repository is hosted on GitHub. The hook should cover every file, including settings files, env files, transcripts and JSON files. It should also cover the .claude folder specifically, so that a settings file can never be committed even if someone forgets the gitignore rule. A pre-commit hook is not perfect, as section 5 showed, but it catches many leaks at the moment they happen, when they are easiest to fix.

15. The Chainalysis Lesson: Agents on the Attack Side

The Chainalysis breach is a reminder that AI agents are not only a developer tool. They are also an attack tool, and defenders must plan for that. Chainalysis disclosed the breach on 30 to 31 October 2026. According to the company, an outside attacker used what Chainalysis called offensive agentic techniques to reach internal systems. The first statement said the attacker accessed user IDs, full names, email addresses and organisation role labels. It also said there was no evidence of access to investigation content, cleartext passwords, multi-factor authentication secrets or session tokens. Chainalysis said the incident was unrelated to the separate theft of about 6.3 billion dollars worth of assets from Binance, which was a different incident in the same period. A later update on 4 November, reported by CoinLab and also covered by Bitcoin.com, painted a more serious picture. That update, which should be treated as reported rather than as Chainalysis's own primary statement, said password hashes and live tokens for all users were exposed, and that several products, including KYT, Address Screening, Reactor, Data Solutions, the Chain beta and the login page, were taken offline. All users were told to reset passwords and rotate API keys, and restoration of KYT and Address Screening began on 5 November.

The lesson for developers is not about Chainalysis specifically. It is about the shift in how attacks work. An agentic attack can adapt, try different approaches, read responses and keep going without a human attacker watching every step. That means a weak secret, a leaked key or a misconfigured permission is more likely to be found and exploited quickly, because an agent can test many possibilities in a short time. It also means that the response to a breach has to be fast. Rotating keys, resetting passwords and taking systems offline are now urgent actions, not tasks for next week. For your own projects, the Chainalysis story reinforces every rule in this guide. Keep secrets out of code, keep them out of commands, rotate them quickly if they leak, limit what each key can do, and monitor usage so you notice misuse early. If a company with a security focus can be reached by an agentic attack, a small team with a leaked API key is an even easier target. The best defence is to assume that any exposed secret will be found, and to make sure that a single exposed secret cannot cause serious damage.

16. The Kill-Switch Era: CrowdStrike, GitLab 19.5 and Governed Agents

The industry response to agentic risk is moving toward governed agents, with kill switches, policy hooks and managed access, and CrowdStrike and GitLab both made announcements in this direction in November 2026. CrowdStrike announced its AI Kill Switch on 3 November 2026 at Fal.Con Europe in Barcelona, inside a product called Falcon Guardian. According to CrowdStrike, the Kill Switch terminates unauthorised agents in real time, first at the Gateway and soon on the endpoint. It blocks those agents from running again and cuts their enterprise network access. Agent-level hooks enforce policy inside Claude Code, OpenAI Codex, GitHub Copilot, Microsoft 365 Copilot, OpenCode and Cursor. AI Supply Chain Protection discovers malicious AI skills and MCP servers. CrowdStrike also announced acquisitions of Fiddler and Dreadnode, which the Wall Street Journal reported as worth about 495 million dollars combined, although CrowdStrike did not disclose the terms. These claims should be treated as vendor claims. There have been no independent tests yet, and the endpoint stop is still described as coming soon, not as available today. The direction is clear, however. Enterprises want a way to stop a rogue agent quickly, just as they want a way to stop a rogue process or a compromised laptop.

17. A Safe Daily Workflow with an AI Coding Assistant

A safe daily workflow is a short routine that you follow every time you use an AI coding assistant, so safety becomes a habit rather than a one-time fix. Start each session by checking your environment. Make sure you are in the right project folder, make sure your gitignore is in place, and make sure no secret is visible in your terminal, your editor or your clipboard. Open the assistant and review its current mode, its approval settings and its sandbox status. If you are starting a sensitive task, consider starting a fresh session so that old context, old approvals and old files do not carry over. When you give the assistant a task, describe the goal, not the secret. Tell it what to build, what to fix or what to test, and let it write code that reads secrets from the environment. If it asks for a real key, pause and ask whether a test value would work instead. Most tasks work fine with a placeholder.

18. Common Mistakes That Leak Secrets

Most secret leaks are not caused by hackers breaking in. They are caused by ordinary mistakes that are easy to make and easy to prevent once you know them. The first mistake is pasting a secret into a prompt. A developer who is stuck will often paste an error message that includes a key, or paste a config file that includes a password, and ask the assistant to fix it. That secret is now in the assistant's context, and it may be saved in a transcript, a log or a settings file. The fix is to redact secrets before you paste anything, and to use placeholders instead. The second mistake is committing a .env file. A local env file is convenient, but if it is not in gitignore, a single git add command can commit it. The fix is to add env files to gitignore on day one and to use a template env file with placeholder values for sharing. The third mistake is sharing a screenshot that includes a secret. A terminal screenshot, an editor screenshot or a dashboard screenshot can all reveal a key in the background. The fix is to blur or crop secrets before you share an image.

19. Tools That Help: Scanners, Managers and Platform Features

The right tools make safe habits easier, but no tool can replace the habits themselves. Secret scanners are the first category. Gitleaks and TruffleHog are two widely used open-source scanners that search git history and files for patterns that look like secrets. Both can be run locally, both can be added as pre-commit hooks, and both can be run in CI. GitHub secret scanning is a platform feature that alerts repository owners when a known secret pattern is found in a commit, and it can work with partner programs that automatically revoke certain leaked keys. Use at least two scanners if you can, because each one catches different patterns, and remember that one in five leaking files in the Apiiro data was missed by both gitleaks and TruffleHog. A scanner is a safety net, not a guarantee. The second category is secret managers. A secret manager stores keys, passwords and tokens in an encrypted vault, controls who can access each secret, logs access, and makes rotation easier. Cloud providers, version control platforms and dedicated vault products all offer secret managers, and even a simple local vault is better than storing secrets in plain text files. Choose one manager for your team, document how to use it, and stop storing secrets in chat, email or shared documents.

20. Final Verdict and the 15-Point Checklist

The verdict is clear: keep using AI coding assistants, but use them with the same care you would use for any powerful tool that can touch your code, your data and your credentials. The Claude Code leak was not a reason to abandon AI assistants. It was a warning that a convenience feature can have a hidden cost, and that developers need to check what their tools are doing on their behalf. The fix is not complicated. It is a set of habits and settings that take a few hours to set up and a few minutes a day to maintain. The developers and teams who adopt those habits will get the speed and help that AI assistants offer, without the risk of a public leak. The teams who ignore the warning will keep taking the same risk, and sooner or later a scanner, a researcher or an attacker will find the secret they left behind. The choice is yours, and this guide has given you everything you need to make the safe choice. Use the checklist below as your starting point. Print it, save it, share it with your team, and work through it this week.

Here is the 15-point checklist in full. One, search your machine for settings.local.json and review every copy. Two, check git history for that file in every repository and treat any secret found as compromised. Three, rotate every secret that was exposed, starting with the most powerful keys. Four, remove exposed secrets from git history and ask collaborators to re-clone. Five, add the settings file to every project gitignore and to your global git excludes. Six, never put a secret in a command, a prompt or a chat message. Seven, move all secrets to environment variables or a secret manager. Eight, review your approval settings in Claude Code, Codex, Copilot and Cursor, and never choose do not ask again for a command with a secret. Nine, enable sandboxing and network limits where your assistant supports them. Ten, vet every MCP server and AI skill before you install it, and remove the ones you do not use. Eleven, install a pre-commit hook with a secret scanner and enable secret scanning in CI. Twelve, enable push protection and branch protection on your repositories. Thirteen, use separate keys for development and production, and rotate them regularly. Fourteen, set up usage alerts so misuse is noticed quickly. Fifteen, repeat the check once a month, and re-check after every assistant update or team change. If you complete all fifteen points, you will have closed the leak described in this guide and built a workflow that protects you against the next one.

For more practical guidance on working with AI tools, see our earlier guides on AI agents with their own computers, GPT-6 Cyber security AI and how to turn sketches into working apps. Each guide focuses on a different part of the same skill: using AI tools well while staying in control of your code, your data and your credentials.

Frequently Asked Questions

What exactly leaked in the Claude Code incident?

Real secrets leaked because a remembered approval stored the full command, including any password or API key, in a plain text settings file that was then committed to public repositories. Apiiro found 104,185 public copies of the file, with 1,122 containing a real secret and 1,379 distinct secrets in the narrower count. The largest groups were database passwords, AI model API keys, Supabase service-role keys, Google API keys and AWS keys. A broader count including git history and transcripts reached 2,539 secrets. The leak was not a hack of Claude Code itself. It was a design choice about how approvals were stored, combined with normal git workflows that published a local file. That is why the fix involves both settings and habits.

How do I know if my repository is affected?

Search your machine and your repositories for settings.local.json, check git history for that file, and review every copy you find for secrets. Start with a file search in your home folder, then run git log for the file path in each project. Check the remote repository as well, because a file that is clean today may have contained a secret in an old commit. Look at commits co-authored by an AI assistant, since those commits often changed the settings file. Check your global git excludes file and your project gitignore to see whether the file is listed. If you find a secret in any commit, treat it as exposed and rotate it immediately, even if the current file looks clean.

Should I stop using Claude Code or other AI coding assistants?

No, you do not need to stop using AI coding assistants, but you do need to use them with the safeguards in this guide. The assistants save time, help with boilerplate, explain unfamiliar code and speed up debugging. The Claude Code issue was a specific storage behaviour, not a reason to abandon the whole category. Apply the gitignore fix, never put secrets in commands, review approvals carefully, use sandboxing where available, and run secret scanners in pre-commit hooks and CI. Those layers protect you with any assistant, including Codex, Copilot and Cursor. A careful workflow lets you keep the benefits while closing the leak.

What is the fastest fix I can apply today?

Add settings.local.json to your project gitignore and your global git excludes, untrack it if it is already tracked, and review the file for secrets. That fix takes about ten minutes and stops future commits from including the file. Open your project gitignore, add a pattern that covers the file in any subfolder, and commit the gitignore change so collaborators get the same protection. Then add the same entry to your global git excludes file, which protects every repository on your machine. Test the fix by creating a test file with the same name and confirming that git status ignores it. This step does not clean git history, so follow it with the rotation steps if a secret was already committed.

Why did secret scanners miss one in five leaking files?

Scanners work by pattern matching, so they miss secrets that do not match a known key format, that are short, that look like ordinary words, or that are stored in an unexpected form. In Apiiro's data, gitleaks flagged 564 of 1,122 leaking files, TruffleHog flagged 643, and 215 were flagged by neither. That means about one in five files would pass both scanners without a warning. A human-chosen database password is a good example, because it may not look like a machine-generated key. Use scanners as one layer, not as proof of safety. Prevention matters more: keep secrets out of files, use environment variables and secret managers, and review changes before you commit.

What should I do first if my API key leaked?

Revoke the old key at its source immediately, then create a replacement with narrow permissions, update your code and secret manager, and check logs for misuse. Do not wait to confirm whether someone used the key, because a leaked key can be tested automatically within minutes. Revoke first, so the old key stops working, then create the new one and update every service that used the old value. Remove the secret from git history with a history rewrite tool, force-push the cleaned history, and ask collaborators to re-clone. Review usage, billing and audit logs for unfamiliar activity since the secret was first committed. Finally, fix the root cause with gitignore, approval and secrets rules.

Are MCP servers and AI skills safe to install?

MCP servers and AI skills are safe when they come from trusted sources, have limited permissions, and are reviewed before installation, but each one adds supply-chain risk. A malicious server or skill can read files, send data to an attacker, or run commands on your machine. List every server and skill you have installed, remove the ones you do not use, and check what each remaining one can access. Prefer official or well-maintained packages, keep them updated, and run high-risk servers in a sandbox with limited network and filesystem access. Watch for prompt injection, where a file or web page contains hidden instructions that try to steer the assistant. If an assistant asks for a secret unexpectedly, stop and review its recent inputs.

How is the Chainalysis breach connected to AI coding safety?

The Chainalysis breach shows that AI agents are now used on the attack side, so a leaked secret is more likely to be found and exploited quickly than it was before. Chainalysis disclosed the breach on 30 to 31 October 2026, saying an outside attacker used offensive agentic techniques to reach internal systems. The first statement listed user IDs, names, email addresses and organisation role labels, with no evidence of access to investigation content, cleartext passwords, multi-factor secrets or session tokens. A later reported update said password hashes and live tokens were exposed and several products were taken offline. The lesson is to assume any exposed secret will be found, rotate it fast, limit what each key can do, and monitor usage.

What is the CrowdStrike AI Kill Switch?

The CrowdStrike AI Kill Switch, announced on 3 November 2026 at Fal.Con Europe in Barcelona, is a feature inside Falcon Guardian that terminates unauthorised agents in real time. According to CrowdStrike, it acts first at the Gateway and soon on the endpoint, blocks terminated agents from running again, and cuts their enterprise network access. Agent-level hooks enforce policy inside Claude Code, OpenAI Codex, GitHub Copilot, Microsoft 365 Copilot, OpenCode and Cursor. AI Supply Chain Protection discovers malicious AI skills and MCP servers. Treat these as vendor claims for now, because there have been no independent tests yet and the endpoint stop is still coming soon. The direction is clear: governed agents with a fast stop control.

What is the safest way to give an AI assistant a secret it needs?

The safest way is usually not to give it a real secret at all, and if one is genuinely needed, provide it through an environment variable and revoke it after the task. Most coding tasks work fine with a test key, a placeholder or a mock value. If the assistant needs a real connection, create a temporary key with narrow permissions, store it in an environment variable, and let the code read it from there. Never paste the secret into a prompt, a command or a chat message, and never let the assistant write it into a file. Delete the temporary key when the task is done.

Sources

Apiiro research on Claude Code secrets in public GitHub files

Report on the Claude Code do not ask again leak

Coverage of the Claude Code password and API key leak

Report on 1,122 public GitHub files exposing passwords

Chainalysis breach blamed on offensive agentic techniques

Chainalysis AI agent breach and client data report

CoinLab update on the Chainalysis breach

BeInCrypto coverage of the Chainalysis hack

CrowdStrike introduces the AI Kill Switch

CrowdStrike delivers AI security and safety for the enterprise

CTO daily sync for 8 November 2026

Comments

Popular posts from this blog

GPU Prices in November 2026: AMD's Second Price Hike, the Vanishing RTX 5080, and Prices 77% Above MSRP — The Complete Buyer's Guide

NVIDIA Rubin Is Shipping (November 2026): The Quiet Spec Downgrade, Vera Rubin NVL72 vs Blackwell vs Hopper — Complete Data-Center GPU Comparison Guide

Best Budget Gaming CPUs in 2026: Ryzen 5 7600X vs Intel Core i5-14600K vs Ryzen 7 7800X3D — Tested Comparison and Buying Guide