Skip to content

SSH private key accidentally committed in AI agent instruction file #12

Description

@kasparovabi

Hi,

I am a security researcher conducting a study on accidental secret exposure in AI agent instruction files (CLAUDE.md, AGENTS.md).

While scanning publicly accessible repositories, I found that SkyflowFoundry/SkyflowForAWSLambda contains what appears to be a real RSA private key inside CLAUDE.md.

File: https://github.com/SkyflowFoundry/SkyflowForAWSLambda/blob/HEAD/CLAUDE.md

The key block (-----BEGIN RSA PRIVATE KEY-----) appears in the repository's agent instruction file. If this key is still in use, anyone who has seen this public file can use it to authenticate to systems that trust it.

Recommended immediate steps:

  1. Revoke or rotate this key immediately on all systems where it is authorized.
  2. Add the file to .gitignore to prevent future exposure.
  3. Consider using git filter-repo or BFG Repo Cleaner to purge the key from git history.

This report is part of coordinated responsible disclosure. I am not exploiting the key and have not accessed any systems with it.

Best regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions