Close Menu
H24 NewsH24 News

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Jan. 6 should follow Trump ‘to his grave,’ Biden says in new memoir

    November 10, 2026

    A Sam Altman parody offers an amusing lesson in memory management

    November 10, 2026

    Judge Sets Steven Tyler Sex Assault Trial Date

    November 10, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Jan. 6 should follow Trump ‘to his grave,’ Biden says in new memoir
    • A Sam Altman parody offers an amusing lesson in memory management
    • Judge Sets Steven Tyler Sex Assault Trial Date
    • European diplomats press Rubio for a role in Russia-Ukraine talks | Russia-Ukraine war News
    • Lawyers Are Flying in Circles Above Nvidia’s Head After Jensen Huang’s Affair With Alleged Spy
    • Paul McCartney and Ringo Starr to Reunite at Vegas Show in 2027
    • Experience The Gales Of November With This Real-Time Great Lakes Simulator
    • ‘The South is in play’: Longtime red states emerge as potential battleground for Democrats
    H24 NewsH24 News
    Subscribe
    • Home
    • Top News
    • Technology
    • Entertainment
    • Lifestyle
    • Home & Living
    • Auto
    H24 NewsH24 News
    Home»Technology»Claude Code is accidentally exposing secrets all over GitHub
    Technology

    Claude Code is accidentally exposing secrets all over GitHub

    h24By h24November 9, 2026No Comments2 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Claude Code is accidentally exposing secrets all over GitHub
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Claude Code is leaking sensitive information on public GitHub instances thanks to a partial oversight in the way its settings files are handled. That’s the finding of AI security researchers at Apiiro, who discovered thousands of secrets, including database passwords, API tokens, and root logins, amid Claude Code settings files embedded in GitHub repositories.

    The leak stems from the way Claude Code handles user approval for automated shell commands. When a user chooses the “Yes, and don’t ask again” option to approve running a command, that choice gets stored as part of a rule in the local “.claude/settings.local.json” file on the user’s computer. That rule is sometimes coded as a pattern, but the command itself is often written to that settings file as is, including any sensitive information that may be embedded within it.

    This isn’t really a significant security issue if the settings file stays on the user’s local machine (assuming that machine doesn’t become compromised itself, of course). And Anthropic notes in its Claude Code documentation that this particular settings file gets added to the developer’s global .gitignore list, which usually prevents it from being shared publicly.

    But that .gitignore setting isn’t reflected at the repo level, meaning the sensitive file can be uploaded accidentally if a repo is cloned to another machine or a folder becomes a repo later, for instance. In many cases, Claude Code itself will commit changes to the settings file without the user’s input, Apiiro writes.

    A breakdown of the kinds of secrets Apiiro found in publicly shared Claude Code settings files.

    A breakdown of the kinds of secrets Apiiro found in publicly shared Claude Code settings files.


    Credit:

    Apiiro

    Apiiro’s researchers found over 100,000 cases where Claude Code’s local settings file had been uploaded to a public GitHub repository. Of these, only about 1,100 from 63 different organizations contained secrets such as public API tokens, database passwords, or private keys. Even after these files are discovered and removed from a repository, the secrets can persist in forks of the original project if a GitHub user isn’t careful.

    accidentally Claude Code exposing GitHub secrets
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    h24
    • Website

    Related Posts

    A Sam Altman parody offers an amusing lesson in memory management

    November 10, 2026

    Lawyers Are Flying in Circles Above Nvidia’s Head After Jensen Huang’s Affair With Alleged Spy

    November 10, 2026

    Every Senior With An Apple Watch Should Set Up These 5 Health Alerts

    November 10, 2026

    Comments are closed.

    Demo
    Top Posts

    U2’s ‘Carnaval de Luz’ Album: Review

    November 8, 20263 Views

    Victorian Architecture Meets Mediterranean Charm in This Warm and Whimsical London Home

    November 7, 20262 Views

    Chinese Spy Who Targeted Jensen Huang Worked Directly for China’s Top Spy Agency: Report

    November 7, 20262 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    Latest Reviews

    Subscribe to Updates

    Get the latest tech news from FooBar about tech, design and biz.

    Demo
    Most Popular

    U2’s ‘Carnaval de Luz’ Album: Review

    November 8, 20263 Views

    Victorian Architecture Meets Mediterranean Charm in This Warm and Whimsical London Home

    November 7, 20262 Views

    Chinese Spy Who Targeted Jensen Huang Worked Directly for China’s Top Spy Agency: Report

    November 7, 20262 Views
    Our Picks

    Jan. 6 should follow Trump ‘to his grave,’ Biden says in new memoir

    November 10, 2026

    A Sam Altman parody offers an amusing lesson in memory management

    November 10, 2026

    Judge Sets Steven Tyler Sex Assault Trial Date

    November 10, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    • About Us
    • Terms and Conditions
    • Privacy Policy
    • Disclaimer
    © 2026 H24. Designed by Webpointt.

    Type above and press Enter to search. Press Esc to cancel.