|
| 1 | +# Security Policy |
| 2 | + |
| 3 | +## Supported Scope |
| 4 | + |
| 5 | +This project is a local multi-bot orchestration stack for Telegram on macOS. |
| 6 | + |
| 7 | +Security-sensitive areas include: |
| 8 | + |
| 9 | +- token handling |
| 10 | +- local env generation |
| 11 | +- launchd service generation |
| 12 | +- local file permissions |
| 13 | +- memory and runtime state storage |
| 14 | + |
| 15 | +## Please Do Not Report Publicly First |
| 16 | + |
| 17 | +If you discover a security issue, do not open a public issue with exploit details first. |
| 18 | + |
| 19 | +Instead: |
| 20 | + |
| 21 | +1. Prepare a short description |
| 22 | +2. Include reproduction steps if possible |
| 23 | +3. State whether secrets, tokens, or local file access are involved |
| 24 | +4. Report it privately to the maintainer |
| 25 | + |
| 26 | +## What Counts as a Security Issue |
| 27 | + |
| 28 | +Examples: |
| 29 | + |
| 30 | +- token leakage |
| 31 | +- secrets written into generated files or logs |
| 32 | +- unsafe default permissions |
| 33 | +- arbitrary code execution through generated config |
| 34 | +- unsafe path handling that could overwrite unintended files |
| 35 | +- unintended cross-bot memory exposure |
| 36 | + |
| 37 | +## What Usually Does Not Count |
| 38 | + |
| 39 | +Examples: |
| 40 | + |
| 41 | +- general install questions |
| 42 | +- feature requests |
| 43 | +- cosmetic documentation issues |
| 44 | +- requests for new integrations |
| 45 | + |
| 46 | +Those should go through normal issues or pull requests. |
| 47 | + |
| 48 | +## Safe Contribution Rules |
| 49 | + |
| 50 | +When contributing: |
| 51 | + |
| 52 | +- never commit real tokens |
| 53 | +- never paste `.env` secrets into issues or pull requests |
| 54 | +- never include private machine paths that expose sensitive local structure beyond what is necessary |
| 55 | +- prefer sanitized examples and placeholders |
| 56 | + |
| 57 | +## Temporary Mitigation Guidance |
| 58 | + |
| 59 | +If you think secrets may have been exposed: |
| 60 | + |
| 61 | +1. rotate the affected Telegram bot tokens immediately |
| 62 | +2. remove local generated env files if needed |
| 63 | +3. check launchd-generated env files and logs |
| 64 | +4. review `.bot_tokens.env` |
| 65 | +5. re-run local setup with sanitized values |
| 66 | + |
| 67 | +## Local Security Hygiene |
| 68 | + |
| 69 | +Before publishing changes, double-check: |
| 70 | + |
| 71 | +- `.bot_tokens.env` is not staged |
| 72 | +- no runtime sqlite files are staged |
| 73 | +- no generated logs are staged |
| 74 | +- docs use placeholder paths where appropriate |
0 commit comments