HaiAI123

Curated Global AI Tools Directory

Industry update
25
heat index
Flat

Claude Code 'Don't Ask Again' option silently writes secrets into config files

11/08/2026 — 11/10, 02:19·4 sources (all)·5 reports (all)

Key takeaways

  • Apiiro scanned 103,617 public repositories and found 1,122 .claude/settings.local.json files containing 1,379 secrets in total, with both gi…

Background & analysis

Early on 11-08-2026, a post by security firm Apiiro reached the Hacker News front page, arguing that the Don't Ask Again option in Claude Code can push sensitive data into public repositories. It drew 106 points and 74 comments within hours. Around 07:02, an article on DEV Community supplied the underlying figures, citing a The Hacker News report from 11-07: Apiiro scanned .claude/settings.local.json across public repositories and found that 104,185 such files sit in 103,617 of them. Of those, 1,122 files contain at least one exposed key and 1,379 keys appear in total, with 215 recovered by neither gitleaks nor TruffleHog. The article also spelled out the mechanism: Claude Code asks permission before some Terminal commands, and choosing "Yes, and don't ask again" causes it to store an allow rule as plain text in .claude/settings.local.json. In the example given, a proposed psql command carried the password right after PGPASSWORD=, and the saved rule captured a full command including the password, so committing the file can leak the credentials.

In the early hours of 11-09-2026, another DEV Community piece approached the incident from the developer side. Beyond quoting the 1,122 public files figure, it argued that configuration files generated automatically by agentic tools are easily overlooked, even though teams already review .env files, and provided steps to audit a repository within 10 minutes, remediate after exposure and detect the problem with scanning tools. By noon that day, Landian had put together the fuller account: after extending the scan to Git history, shared settings files and stored agent session records, the researchers counted 2,539 distinct credentials in 1994 repositories, most of them still valid, which suggested developers had not noticed the leak. Landian also reported that a Claude Code product lead said the team is working on prevention measures, including basic credential scanning, and that users should check their config and rotate anything already exposed. As of the latest feedback, no formal fix release has been publicly reported.

AI-generated from 4 reports

Latest turnAccording to Ars Technica, a "Do not ask again" prompt in Claude Code leads users to skip confirmations, causing passwords, API keys, and other secrets to end up in public GitHub repositories. The report says such leaks are already showing up across GitHub.

Related AI tools

updream
24-hour heatHeat index 25
Just charted — trend is building up
24 hours agonow

Reports on this story headlines open the original

Nov 10
  1. According to Ars Technica, a "Do not ask again" prompt in Claude Code leads users to skip confirmations, causing passwords, API keys, and other secrets to end up in public GitHub repositories. The report says such leaks are already showing up across GitHub.

    Ars Technica · AIAI score 63
Nov 9
  1. Security firm APIIRO scanned 103,617 public repositories and found about 1,122 .claude/settings.local.json files containing sensitive credentials, with 1,379 credentials potentially exposed. A Claude Code product lead said the team is studying preventive measures including basic credential scanning, and users should check their config files and rotate exposed credentials.

    蓝点网AI score 79
  2. A DEV Community post explains how Claude Code's "Don't Ask Again" option can write approved commands containing credentials in plaintext into .claude/settings.local.json, where they can leak once committed. It cites a Hacker News post claiming such configs were exposed in 1,122 public GitHub files, and walks through a 10-minute repo check plus cleanup and prevention steps.

    DEV Community · AIAI score 56
Nov 8
  1. Security firm Apiiro scanned 104,185 copies of .claude/settings.local.json across 103,617 public repos and found 1,122 holding at least one secret, 1,379 in total, The Hacker News reported on November 7. gitleaks and TruffleHog both missed some, with 215 secrets flagged by neither; the files persist because Claude Code writes "Yes, and don't ask again" Bash approvals in plain text per repository.

    DEV Community · AIAI score 63
  2. A blog post from security firm Apiiro reports that Claude Code's "Don't Ask Again" option can let sensitive data end up in public repositories, with exposed passwords and other credentials found in 1,122 public GitHub files. The write-up drew 106 points and 74 comments on Hacker News.

    Hacker News · 热榜AI score 61

Other stories people are talking about

How is heat calculated?About the method

Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.

This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.

Surge
Discussion rising fast
New
First report within 6 hours
Rising
Still gathering discussion

Back to AI industry updates →