AITBC is developed privately on Gitea with a public GitHub mirror. To report a security vulnerability:
- GitHub: use private vulnerability reporting (Security → Report a vulnerability), or open a draft security advisory.
- Email:
[email protected]— the operator's direct contact. - Please do not file public issues for unpatched vulnerabilities.
There is no public bug bounty program and no separate security team mailbox; reports go directly to the maintainer.
Security tooling is installed via requirements-dev.txt and run locally or in
CI:
- pip-audit — scans Python packages for known vulnerabilities
- Bandit — static analysis for Python security issues
- CodeQL — configuration lives under
.github/codeql/(suppressions.yml)
# Scan Python dependencies (pip-audit; scan tools run in a throwaway venv)
./scripts/security/dependency-scan.sh
# Scan source for hardcoded secrets
./venv/bin/python scripts/security/scan_secrets.py
# Full local audit
./venv/bin/python scripts/security/security_audit.py.github/workflows/ci.ymland.gitea/workflows/ci.ymlrun the test suites, docs validation, port/bind-policy checks, and Foundry contract tests on every push and PR tomain. There is currently no separate scheduled dependency-security workflow — scans are run manually with the scripts above.
- Dependabot (
.github/dependabot.yml) opens weekly update PRs for pip, npm, and GitHub Actions dependencies (Mondays 09:00, limit 5). - Manual updates:
- Run
./scripts/security/dependency-scan.sh pip install --upgrade <package>; refreshrequirements.txt- Re-run the scan and the test suite
- Commit as
deps: update <package> to <version>
- Run
When vulnerabilities are detected:
- Critical (CVSS ≥ 9.0): create a private advisory, patch within 24 hours, deploy hotfix if needed.
- High (CVSS 7.0–8.9): patch within 72 hours, schedule maintenance window.
- Medium/Low (CVSS < 7.0): include in the next scheduled update; document the risk assessment.
- Never commit secrets to the repository
- Use environment variables for sensitive data
- Run security scans before committing
- Keep dependencies updated
- Review dependency licenses for compliance
- Pin versions in
requirements.txt - Use virtual environments for isolation
- Audit new dependencies before adding
- Minimize attack surface by removing unused dependencies
- Use
requirements-dev.txtfor development-only dependencies
- Security review for code touching sensitive data
- Input validation on all user inputs
- Error handling that does not expose sensitive information
- Authentication/authorization checks on all endpoints
- Logging without logging sensitive data
Add to .git/hooks/pre-commit:
#!/bin/bash
# Run security scan before commit
./scripts/security/dependency-scan.shEnable warnings for:
- Hardcoded secrets
- SQL injection risks
- XSS vulnerabilities
- Insecure deserialization
Last Updated: 2026-09-19