Is RedHatProductSecurity/ai-guardian safe?
Yes. RedHatProductSecurity/ai-guardian is safe to install. Oathe's behavioral security audit gave the ai-guardian skill by RedHatProductSecurity a trust score of 84/100 with 7 findings (1 high).
https://github.com/RedHatProductSecurity/ai-guardian
Is RedHatProductSecurity/ai-guardian safe to install?
AI Guardian is a legitimate security monitoring tool published by RedHatProductSecurity (Red Hat's official security organization) with a clean SKILL.md free of prompt injection attempts, explicit bypass-prevention instructions, and a comprehensive test suite of 200+ tests. The primary concerns are: (1) sensitive credential files were accessed during the monitoring window, though timing analysis strongly suggests this was the Oathe audit infrastructure establishing canary baselines rather than ai-guardian code; (2) a bundled release skill grants high-privilege git/publishing operations that could have significant impact if invoked in an unauthorized context; and (3) the support bundle feature defaults to publishing to public GitHub Discussions, requiring careful user consent handling. No network exfiltration was detected, all canary files remained intact, and no malicious code patterns were found.
What security issues were found in RedHatProductSecurity/ai-guardian?
Category Scores
Findings (7)
HIGH Sensitive credential files accessed during monitoring window -20 ▶
The filesystem monitoring captured read-only access to .env, .ssh/id_rsa, .aws/credentials, .npmrc, .docker/config.json, and GCloud application_default_credentials.json at 14:07:42. Attribution is ambiguous: the accesses occur roughly 5 seconds BEFORE the GitHub clone completes (14:07:47+), making it unlikely that ai-guardian code triggered them. The most probable cause is the Oathe audit infrastructure reading planted canary files to establish integrity baselines. No network exfiltration corresponding to these reads was detected, and canary integrity was confirmed intact.
Evidence: 14:07:42 OPEN /home/oc-exec/.env; OPEN /home/oc-exec/.ssh/id_rsa; OPEN /home/oc-exec/.aws/credentials; OPEN /home/oc-exec/.npmrc; OPEN /home/oc-exec/.docker/config.json; OPEN /home/oc-exec/.config/gcloud/application_default_credentials.json — all CLOSE_NOWRITE
MEDIUM Release skill grants high-privilege git and publishing operations -12 ▶
The bundled release skill (user-invocable) can create git tags, push branches, publish to PyPI, trigger GitHub Actions workflows, and post to GitHub Discussions. These operations are irreversible and affect shared infrastructure. The skill includes authorization controls (checks for maintainer identity) but relies on the agent reading embedded text warnings rather than technical enforcement. If invoked in an unexpected context, unauthorized publishing could occur.
Evidence: SKILL.md release section: '/release minor — push to origin main, git tag -a vX.Y.Z, gh workflow run release-readiness.yml, publishing to PyPI, verify container images at quay.io'
MEDIUM Support bundle defaults to public GitHub Discussions -15 ▶
The send_support_bundle MCP flow defaults to publishing diagnostic files (logs, violations, config, metrics) as unlisted GitHub Gists with links in public RedHatProductSecurity/ai-guardian Discussions. The SKILL.md warns users of this but the default channel is public. A user who misunderstands the two-step consent flow could accidentally expose sensitive system configuration or violation history publicly.
Evidence: SKILL.md: 'Default destination is public GitHub Discussions in RedHatProductSecurity/ai-guardian … Unlisted is not private: publishing the Gist link in the public Discussion exposes it.' ai-guardian-example.json: 'export_destination: github-discussions'
MEDIUM Remote pattern server fetches patterns from arbitrary URLs at runtime -10 ▶
The tool supports a configurable pattern server that fetches detection patterns from an operator-specified URL with bearer token authentication. A malicious or compromised pattern server could supply patterns that cause the security scanner to generate false positives blocking legitimate operations or false negatives allowing malicious ones. This is a supply-chain trust dependency not visible in the SKILL.md itself.
Evidence: ai-guardian-example.json secret_scanning.engines[gitleaks].pattern_server.url — configurable to arbitrary HTTPS endpoint; SKILL.md instructs agent to query get_patterns_list() which reflects whatever patterns are loaded
LOW Dual-skill SKILL.md increases agent instruction surface -8 ▶
A single SKILL.md file delivers two distinct skills (ai-guardian-security and release) concatenated with a YAML separator. While neither skill contains malicious instructions, bundling a security-advisory skill with a high-privilege release workflow skill in one file is unusual. The release skill is user-invocable (/release) while the security skill activates automatically when MCP tools are present, creating a capability surface mismatch.
Evidence: SKILL.md contains two YAML frontmatter blocks: 'name: ai-guardian-security … user-invocable: false' and 'name: release … user-invocable: true'
LOW /etc/shadow and SSH authorized_keys accessed during monitoring -5 ▶
/etc/passwd, /etc/shadow, and /home/oc-exec/.ssh/authorized_keys were accessed at 14:07:42 and 14:07:47. These accesses are consistent with SSH PAM authentication events for the Oathe audit infrastructure establishing new SSH sessions (confirmed by network audit showing new session IDs 10-15). No write access was detected.
Evidence: 14:07:47 OPEN /etc/shadow; OPEN /home/oc-exec/.ssh/authorized_keys; network audit shows sshd spawning sessions ses=10,11,12,13,14,15 at corresponding timestamps
INFO Tool's MCP advisor instructs agent to never read scan report files 0 ▶
The SKILL.md explicitly prohibits the agent from reading the scan report files generated by scan_directory_report(), which may contain actual secret values. This is a positive security design — the skill is designed to avoid loading sensitive content into the LLM context.
Evidence: SKILL.md: 'NEVER read the report file yourself — it contains actual secret/PII values'
Should I install RedHatProductSecurity/ai-guardian?
Oathe's verdict for RedHatProductSecurity/ai-guardian is SAFE with a trust score of 84/100. Recommendation: Install with caution.