{"score":100,"grade":"A","scannedAt":"2026-12-05T23:02:11.160Z","scanner":"grades-0.2","signals":{"ecosystem":"pypi","name":"dbabrain","version":"2.0.0","license":"Apache-2.0","repository":"https://github.com/tanthanhkaka01/dba-brain","firstPublished":"2026-08-22T15:58:35.068142Z","lastPublished":"2026-12-04T14:46:39.410183Z","versions":52,"files":1779,"bytes":116140342,"hosts":["api.telegram.org","archive.ubuntu.com","dbabrain.dev","dev.mysql.com","docs.oracle.com","get.docker.com","mcp.dbabrain.dev","schemas.openxmlformats.org","security.ubuntu.com","sqlite.org","vn.archive.ubuntu.com","www.postgresql.org"]},"capabilities":{"network":true,"files":true,"shell":true,"env":true,"dynamicCode":false},"findings":[{"rule":"secrets-paths","severity":"low","title":"Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)","file":"dbabrain/db/read_only_query.py","line":65,"snippet":"conn.execute(f\"SET LOCAL statement_timeout = {int(timeout_seconds) * 1000}\")"},{"rule":"secrets-paths","severity":"low","title":"Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)","file":"dbabrain/lib/cmd_access.py","line":83,"snippet":"anything with a directory part, so ``/keys/id_rsa`` counts as one on a Windows master too,"},{"rule":"secrets-paths","severity":"low","title":"Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)","file":"dbabrain/sre/automation/powershell/07-bootstrap-bastion-ansible.ps1","line":111,"snippet":"…eyScript = \"mkdir -p ~/.ssh && chmod 700 ~/.ssh && [ ! -f ~/.ssh/id_ed25519 ] && ssh-keygen -t ed25519 -N '' -f ~/.ssh/id_ed25519 || true; cat ~/.ssh/id_ed25519"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dbabrain/backup_restore/cli.py","line":1010,"snippet":"log_scope = os.getenv(LOG_SCOPE_ENV_VAR) or _default_log_scope(args.command)"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dbabrain/backup_restore/cli.py","line":1528,"snippet":"…e(_exception_metadata(exc, app_config=app_config, log_scope=os.getenv(LOG_SCOPE_ENV_VAR) or \"backup_restore\"))"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dbabrain/backup_restore/copy_backup.py","line":206,"snippet":"env_value = os.getenv(password_ref, \"\").strip()"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dbabrain/backup_restore/copy_backup.py","line":1324,"snippet":"shutil.rmtree(staging, ignore_errors=True)"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dbabrain/backup_restore/copy_backup.py","line":1429,"snippet":"shutil.rmtree(staging, ignore_errors=True)"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dbabrain/backup_restore/copy_backup.py","line":1510,"snippet":"with config.robocopy_log_path.open(\"a\", encoding=\"utf-8\") as file:"},{"rule":"network","severity":"info","title":"Makes network requests","file":"dbabrain/common/dbabrain_key_admin.py","line":34,"snippet":"import urllib.request"},{"rule":"network","severity":"info","title":"Makes network requests","file":"dbabrain/common/dbabrain_key_admin.py","line":57,"snippet":"request = urllib.request.Request(url, data=data, method=method, headers=headers)"},{"rule":"network","severity":"info","title":"Makes network requests","file":"dbabrain/common/dbabrain_key_admin.py","line":59,"snippet":"with urllib.request.urlopen(request, timeout=timeout) as answer:"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dbabrain/common/docker_db/healthcheck.py","line":77,"snippet":"runner=subprocess.run,"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dbabrain/common/docker_db/healthcheck.py","line":103,"snippet":"…_detail(statuses: dict[str, str], *, tail: int = 20, runner=subprocess.run) -> str:"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dbabrain/common/docker_db/provisioner.py","line":278,"snippet":"runner=subprocess.run,"}],"vulns":[],"installScripts":[],"server":{"name":"dev.dbabrain/dbabrain","title":"DBA Brain","description":"Open-source DBA tool for AI agents: graded database health checks, SQL, backups proven by restore","websiteUrl":"https://dbabrain.dev/en/mcp/","repository":"https://github.com/tanthanhkaka01/dba-brain","version":"2.0.0"}}