3.3 KiB
3.3 KiB
Security Policy
Supported versions
Only the latest main branch is maintained. There is no long-term support
branch.
What is sensitive
Never commit or publish:
| Path / pattern | Contents |
|---|---|
config.json |
proxies, remote hosts, feature flags, secrets |
.env |
environment secrets |
mail_credentials.txt |
mailbox password + Microsoft refresh_token |
mail_assets/ |
imported Hotmail credential batches |
accounts_cli.txt / accounts_*.txt |
Grok password + SSO cookie |
cpa_auths/*.json |
OIDC access_token / refresh_token |
backups/ |
full credential snapshots |
logs/ / screenshots/ / cookies/ |
may embed PII or tokens |
Templates are safe to share: config.example.json, config.simple.example.json, mail_credentials.example.txt, .env.example.
Local hygiene (operators)
Runtime trees often hold thousands of tokens. Treat the working directory as a secrets vault:
- Prefer full-disk encryption; avoid putting this repo under iCloud/Dropbox/OneDrive sync of
mail_credentials.txt/cpa_auths//backups/. - Restrict permissions:
chmod 600 config.json .env mail_credentials.txt accounts_cli.txtwhen present. - Before every commit:
bash scripts/doctor_secrets.sh(prints paths/modes only, never file contents). Exit1= tracked/staged secrets;2= warnings (e.g. loose mode). - Never
git add -fgitignored credential paths. CI also refuses known secret paths onmain. - If leaked: rotate Microsoft refresh tokens, xAI/SSO sessions, CPA OIDC tokens, and any SSH passwords in inject credentials; invalidate remote live copies.
Reporting a vulnerability
Please do not open a public issue for security problems that expose credentials, remote access, or RCE-style bugs.
Prefer one of:
- GitHub private vulnerability report on this repository (if enabled)
- A private contact via the repository owner’s GitHub profile
Include:
- affected commit / tag
- reproduction steps (with redacted secrets)
- impact assessment
We aim to acknowledge reports within a reasonable time; there is no bug bounty.
If secrets leak
- Revoke / rotate immediately
- Microsoft mailbox refresh_token / app password
- xAI / Grok session (SSO) by password reset or session revoke if available
- CPA / OIDC tokens (re-mint after rotation)
- SSH passwords / keys used for remote inject
- Remove secrets from any fork, gist, chat log, or CI artifact
- If the secret was pushed to Git history, rotate first, then rewrite or abandon the tainted history; rotation matters more than history scrubbing
- Check remote CPA auth-dir and delete leaked
xai-*.jsonfiles
Safe defaults for contributors
- Run offline tests only in CI (
GROK_REGISTER_LIVEunset) - Prefer dummy values in examples
- Never attach real
cpa_authsor mail credentials to pull requests - Redact emails and tokens in logs pasted into issues
- SSO normalize only strips a leading
-when a JWT header (eyJ) is nearby; do not change this to blindlstrip("-")on arbitrary session values
Remote inject
cpa_remote_inject may use sshpass and a credentials file. That password is
as sensitive as root on the target host. Prefer SSH keys + ssh-agent when
possible; keep credential files mode 600 outside the repo.