{"type":"post","id":"gitguardian-reports-claude-code-settings-secrets-in-public-7314b6","slug":"gitguardian-reports-claude-code-settings-secrets-in-public-7314b6","title":"GitGuardian reports Claude Code settings secrets in public Docker Hub images","description":"GitGuardian found 613 distinct secrets in Claude Code settings files in public Docker Hub images, and reported that 99 were valid (blog.gitguardian.com).","retrieval_nugget":"GitGuardian found 613 distinct secrets in Claude Code settings files in public Docker Hub images, and reported that 99 were valid (blog.gitguardian.com).","published_at":"2026-12-02","updated_at":"2026-12-02","record_date":"2026-12-02","date_kind":"published_at","topics":["claude","claude-code"],"entities":["GitGuardian","Claude Code","Docker Hub","Stony Brook University","ContainerBots"],"related_patterns":["agent-security-moves-to-runtime-boundaries"],"novelty_label":"new_fact","what_changed":null,"prior_refs":[],"source_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled","source_urls":["https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled"],"production":{"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-12-02T10:36:24.838Z","independent_sources":1,"notes_synthesized":null,"writer_model":"gpt-6-luna","critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":null,"editorial_value":"high","human_review":"selective"},"citations":[{"claim":"GitGuardian found 613 distinct secrets in Claude Code settings files in public Docker Hub images, and reported that 99 were valid.","quotes":["The same research also looked into the scale of the problem on Docker Hub. Public images held 109,284 occurrences in settings.local.json and 29,613 in settings.json. The files held 613 distinct secrets, and 99 were valid."],"cite_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled#:~:text=The%20same%20research%20also%20looked%20into%20the%20scale%20of%20the%20problem%20on%20Docker%20Hub.%20Public%20images%20held%20109%2C284%20occurrences%20in%20settings.local.json%20and%2029%2C613%20in%20settings.json.%20The%20files%20held%20613%20distinct%20secrets%2C%20and%2099%20were%20valid.","source_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled","publisher":"blog.gitguardian.com"},{"claim":"Claude Code’s persistent permission option saves an allow rule to.claude/settings.local.json; that rule can include the full command string, including a key supplied in a command header.","quotes":["The rule stores the full command string. A curl call with an API key in a header gets saved with the key."],"cite_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled#:~:text=The%20rule%20stores%20the%20full%20command%20string.%20A%20curl%20call%20with%20an%20API%20key%20in%20a%20header%20gets%20saved%20with%20the%20key.","source_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled","publisher":"blog.gitguardian.com"},{"claim":"A.gitignore exclusion does not keep a file out of a Docker image:.dockerignore must exclude it separately.","quotes":["When the code is copied from the working tree into the image, it reads the directory on disk, ignoring the Git index entirely. A file that .gitignore keeps out of every commit still lands in the image unless .dockerignore excludes it."],"cite_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled#:~:text=When%20the%20code%20is%20copied%20from%20the%20working%20tree%20into%20the%20image%2C%20it%20reads%20the%20directory%20on%20disk%2C%20ignoring%20the%20Git%20index%20entirely.%20A%20file%20that%20.gitignore%20keeps%20out%20of%20every%20commit%20still%20lands%20in%20the%20image%20unless%20.dockerignore%20excludes%20it.","source_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled","publisher":"blog.gitguardian.com"},{"claim":"Separately, Stony Brook researchers published 300 honeypot images across eight public registries over four months, planting AWS, OpenAI and Anthropic API keys alongside decoy SSH keys and database credentials.","quotes":["17, BleepingComputer reported on research … after its image went live.","In an era of Artex … database credentials in honeypot images."],"cite_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled#:~:text=17%2C%20BleepingComputer%20reported%20on%20research,after%20its%20image%20went%20live.&text=In%20an%20era%20of%20Artex,database%20credentials%20in%20honeypot%20images.","source_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled","publisher":"blog.gitguardian.com"},{"claim":"Across public Docker Hub images, GitGuardian counted 109,284 occurrences of settings.local.json and 29,613 of settings.json; 72% of the files were under /app, /workspace or /usr/src.","quotes":["The same research also looked into the scale of the problem on Docker Hub. Public images held 109,284 occurrences in settings.local.json and 29,613 in settings.json. The files held 613 distinct secrets, and 99 were valid.","72% of the files sat under /app, /workspace, or /usr/src, the typical landing spots for file system copies."],"cite_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled#:~:text=The%20same%20research%20also%20looked%20into%20the%20scale%20of%20the%20problem%20on%20Docker%20Hub.%20Public%20images%20held%20109%2C284%20occurrences%20in%20settings.local.json%20and%2029%2C613%20in%20settings.json.%20The%20files%20held%20613%20distinct%20secrets%2C%20and%2099%20were%20valid.&text=72%25%20of%20the%20files%20sat%20under%20%2Fapp%2C%20%2Fworkspace%2C%20or%20%2Fusr%2Fsrc%2C%20the%20typical%20landing%20spots%20for%20file%20system%20copies.","source_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled","publisher":"blog.gitguardian.com"},{"claim":"In the separate honeypot experiment, the fastest planted AWS key was used 7.86 seconds after its image went live; all 100 AWS keys in the first round were used within 15 minutes, with a median 51.19 seconds to a first API call.","quotes":["They published 300 honeypot images across eight public registries over four months and presented the findings at the most recent ACM Conference on Computer and Communications Security earlier this month. The fastest planted AWS key was used 7.86 seconds after its image went live.","The planted AWS keys received over 140,000 API calls from about 5,000 unique IP addresses. All 100 AWS keys in the first round were used within 15 minutes.","The planted AWS keys received over 140,000 API calls from about 5,000 unique IP addresses. All 100 AWS keys in the first round were used within 15 minutes. The median time to the first API call was 51.19 seconds."],"cite_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled#:~:text=They%20published%20300%20honeypot%20images%20across%20eight%20public%20registries%20over%20four%20months%20and%20presented%20the%20findings%20at%20the%20most%20recent%20ACM%20Conference%20on%20Computer%20and%20Communications%20Security%20earlier%20this%20month.%20The%20fastest%20planted%20AWS%20key%20was%20used%207.86%20seconds%20after%20its%20image%20went%20live.&text=The%20planted%20AWS%20keys%20received%20over%20140%2C000%20API%20calls%20from%20about%205%2C000%20unique%20IP%20addresses.%20All%20100%20AWS%20keys%20in%20the%20first%20round%20were%20used%20within%2015%20minutes.&text=The%20planted%20AWS%20keys%20received%20over%20140%2C000%20API%20calls%20from%20about%205%2C000%20unique%20IP%20addresses.%20All%20100%20AWS%20keys%20in%20the%20first%20round%20were%20used%20within%2015%20minutes.%20The%20median%20time%20to%20the%20first%20API%20call%20was%2051.19%20seconds.","source_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled","publisher":"blog.gitguardian.com"},{"claim":"The honeypot images were pulled more than 75,000 times, and the AWS keys received over 140,000 API calls from about 5,000 unique IP addresses.","quotes":["These honeypots recorded whenever an image was built, run, or had a shell opened inside it. The results paint a startling picture of how fast secrets get abused. The images were pulled more than 75,000 times.","The planted AWS keys received over 140,000 API calls from about 5,000 unique IP addresses. All 100 AWS keys in the first round were used within 15 minutes."],"cite_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled#:~:text=These%20honeypots%20recorded%20whenever%20an%20image%20was%20built%2C%20run%2C%20or%20had%20a%20shell%20opened%20inside%20it.%20The%20results%20paint%20a%20startling%20picture%20of%20how%20fast%20secrets%20get%20abused.%20The%20images%20were%20pulled%20more%20than%2075%2C000%20times.&text=The%20planted%20AWS%20keys%20received%20over%20140%2C000%20API%20calls%20from%20about%205%2C000%20unique%20IP%20addresses.%20All%20100%20AWS%20keys%20in%20the%20first%20round%20were%20used%20within%2015%20minutes.","source_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled","publisher":"blog.gitguardian.com"},{"claim":"On GitHub, GitGuardian counted over 89,000 Claude Code settings file instances between January 2025 and early November 2026, finding 31,088 distinct secrets across 23,276 repositories, of which 5,343 were valid at detection.","quotes":["Between January 2025 and early November 2026, on GitHub alone, GitGuardian counted over 89,000 instances of these files.","Between January 2025 and early November 2026, on GitHub alone, GitGuardian counted over 89,000 instances of these files. The files held 31,088 distinct secrets across 23,276 repositories.","5,343 of those secrets were valid at the time of detection. We know this is just the tip of the iceberg, as code ends up in many places beyond GitHub."],"cite_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled#:~:text=Between%20January%202025%20and%20early%20November%202026%2C%20on%20GitHub%20alone%2C%20GitGuardian%20counted%20over%2089%2C000%20instances%20of%20these%20files.&text=Between%20January%202025%20and%20early%20November%202026%2C%20on%20GitHub%20alone%2C%20GitGuardian%20counted%20over%2089%2C000%20instances%20of%20these%20files.%20The%20files%20held%2031%2C088%20distinct%20secrets%20across%2023%2C276%20repositories.&text=5%2C343%20of%20those%20secrets%20were%20valid%20at%20the%20time%20of%20detection.%20We%20know%20this%20is%20just%20the%20tip%20of%20the%20iceberg%2C%20as%20code%20ends%20up%20in%20many%20places%20beyond%20GitHub.","source_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled","publisher":"blog.gitguardian.com"},{"claim":"Generic secret detections accounted for 63% of settings.local.json occurrences.","quotes":["GitGuardian research found those generic detections accounted for 63% of settings.local.json occurrences."],"cite_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled#:~:text=GitGuardian%20research%20found%20those%20generic%20detections%20accounted%20for%2063%25%20of%20settings.local.json%20occurrences.","source_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled","publisher":"blog.gitguardian.com"},{"claim":"The researchers rarely observed anyone running the honeypot images; GitGuardian says scanners most likely unpacked layers or queried the registry API, so that explanation is an inference.","quotes":["The OpenAI and Anthropic keys were used to drain the test accounts' balances, all within seconds. Monitoring rarely saw anyone run the honeypot images. The scanners most likely unpacked layers or queried the registry API directly."],"cite_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled#:~:text=The%20OpenAI%20and%20Anthropic%20keys%20were%20used%20to%20drain%20the%20test%20accounts%27%20balances%2C%20all%20within%20seconds.%20Monitoring%20rarely%20saw%20anyone%20run%20the%20honeypot%20images.%20The%20scanners%20most%20likely%20unpacked%20layers%20or%20queried%20the%20registry%20API%20directly.","source_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled","publisher":"blog.gitguardian.com"},{"claim":"The researchers found no evidence that one operator coordinated the scanners they called ContainerBots.","quotes":["The researchers grouped the scanners under the name \"ContainerBots.\" They found no evidence that one operator coordinated them."],"cite_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled#:~:text=The%20researchers%20grouped%20the%20scanners%20under%20the%20name%20%22ContainerBots.%22%20They%20found%20no%20evidence%20that%20one%20operator%20coordinated%20them.","source_url":"https://blog.gitguardian.com/docker-hub-secrets-ai-agentsuntitled","publisher":"blog.gitguardian.com"}],"schema_version":"newruntime-agent-readable-v0.2","stable_id":"post:gitguardian-reports-claude-code-settings-secrets-in-public-7314b6","status":"published","visuals":[],"editor":{"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]},"routes":{"html":"https://newruntime.com/posts/gitguardian-reports-claude-code-settings-secrets-in-public-7314b6/","markdown":"https://newruntime.com/posts/gitguardian-reports-claude-code-settings-secrets-in-public-7314b6.md","json":"https://newruntime.com/posts/gitguardian-reports-claude-code-settings-secrets-in-public-7314b6.json"},"markdown_url":"https://newruntime.com/posts/gitguardian-reports-claude-code-settings-secrets-in-public-7314b6.md","next_reads":[{"type":"topic","path":"/topics/claude/","url":"https://newruntime.com/topics/claude/","title":"Claude","reason":"Explore the claude topic hub.","media_type":"text/html","markdown_url":"https://newruntime.com/topics/claude.md","json_url":"https://newruntime.com/topics/claude.json"},{"type":"topic","path":"/topics/claude-code/","url":"https://newruntime.com/topics/claude-code/","title":"Claude Code","reason":"Explore the claude-code topic hub.","media_type":"text/html","markdown_url":"https://newruntime.com/topics/claude-code.md","json_url":"https://newruntime.com/topics/claude-code.json"},{"type":"collection","path":"/posts/","url":"https://newruntime.com/posts/","title":"Field Notes","reason":"Open the latest editorial analysis.","media_type":"text/html","json_url":"https://newruntime.com/posts.json"},{"type":"collection","path":"/sources/","url":"https://newruntime.com/sources/","title":"Sources","reason":"See the original sources this archive cites.","media_type":"text/html"}]}
