Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

bedrock-security-mcp

Latest version: v0.3.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: auaggy
0 Stars
0 Forks
1 Versions
177 Downloads
TypeScript Repo language

Scan summary

bedrock-security-mcp was last scanned on 29 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 29 Nov 2026.
  • Findings: No rules fired in version 0.3.0.
  • Downloads: 177 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.0 LATEST 29 Nov 2026 No rules fired

No rules fired in 0.3.0

Findings

Findings for v0.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

bedrock-security-mcp

An MCP server with a CI-grade CLI. It audits the security posture of AWS Bedrock workloads: IAM roles with Bedrock permissions, model-invocation logging and its KMS encryption, guardrail quality, and prompt-injection signals in your invocation logs. Findings map to OWASP LLM Top 10 (2025), OWASP Agentic Applications Top 10, NIST AI RMF, and MITRE ATLAS.

Canonical source. This repository and the npm package bedrock-security-mcp are the authoritative source for this tool. Running npx -y bedrock-security-mcp gets the release published here, with a SLSA provenance attestation that ties the tarball to the commit that built it.

Third-party directories also list this package: mcprush.com, LobeHub, Conduid, mcp.market and others. They are independent, unaffiliated mirrors. They may show an older version, the archived repository, or a generated trust score. This README and the npm package are the current record.

Found a problem, or a listing that describes this tool wrongly? Open an issue, or email the address in SECURITY.md for anything sensitive.

Ask Claude to audit your account, or run the same audit from a pipeline with no LLM involved. Both entrypoints call the same code and produce the same findings.

How it runs

The server is a stdio process on your machine. There is no hosted component.

You ask Claude: "audit my Bedrock security posture"
  -> Claude calls the MCP tool
  -> the server queries AWS read-only APIs with your local credentials
  -> structured findings return to Claude for interpretation

Credentials come from the standard AWS SDK chain (AWS_PROFILE, environment, SSO, instance role). The tool never reads or forwards key material, and the LLM receives structured findings, never raw credentials or full CloudTrail event bodies.

Quick start

As an MCP server (Claude Desktop or Claude Code)

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "bedrock-security": {
      "command": "npx",
      "args": ["-y", "bedrock-security-mcp"],
      "env": {
        "AWS_PROFILE": "default"
      }
    }
  }
}

Then ask: "audit my Bedrock posture", "scan for prompt injection signals in the last 6 hours", or "generate a posture report".

As a CLI (humans and CI)
npx bedrock-security-mcp audit --region us-east-1 --out-dir ./reports

This prints a markdown report to stdout, writes a self-contained HTML report to ./reports/, and exits non-zero when blocking findings exist. No LLM is involved; output is deterministic for a given account state.

Flag Effect
--region <region> AWS region (default: AWS_REGION or us-east-1)
--role <roleName> Audit a single IAM role
--hours <n> Hours of CloudTrail and invocation-log history (default 24, clamped to 1..2160 = 90 days, CloudTrail's retention cap)
--out-dir <path> Directory for the HTML report (default: current directory; created if missing)
--title <title> Report title
--json Print raw findings as JSON instead of markdown

Exit codes: 0 when no critical or high severity FAIL findings exist, 1 when any do, 2 on bad arguments. That makes the CLI a real gate:

npx bedrock-security-mcp audit --region $AWS_REGION --out-dir reports && echo "posture OK"

Configurations

Environment variables

The env block in the MCP server definition (or your shell for the CLI) controls runtime behavior:

Variable Purpose Default
AWS_PROFILE AWS credential profile to use the SDK default chain
AWS_REGION Region to audit us-east-1
BEDROCK_SECURITY_OUTPUT_DIR Where the HTML report is written (the CLI sets this from --out-dir) none (no HTML written unless set)
BEDROCK_SECURITY_ACCOUNT_ID Override the account ID shown in the report header (otherwise resolved from a role ARN) none

No log-level variable is exposed. The MCP server logs a single startup line to stderr; the CLI writes the HTML path to stderr and the report to stdout. AWS SDK retries and timeouts use the SDK defaults.

The three tools

audit_bedrock_posture

Audits configuration and IAM. Checks that model-invocation logging is enabled and its CloudWatch log group uses a customer-managed KMS key. Fetches every guardrail and evaluates filter strength, PII entities, denied topics, and contextual grounding. Enumerates every IAM role, reads managed and inline policies plus trust policies, and flags Bedrock-relevant risk:

Rule Severity
wildcard-bedrock-action critical
wildcard-principal critical
no-condition-keys high
cross-account-bedrock-access high
bedrock-logging-disabled high
guardrail-content-filter-weak high
not-action-not-resource medium
invocation-logs-without-cmk medium
guardrail-no-pii-filter medium
guardrail-no-denied-topics low
guardrail-grounding-disabled low
find_prompt_injection_signals

Detection over two sources. CloudTrail management events drive off-hours anomaly detection and flag invocations made without a guardrail attached. Bedrock model-invocation logs (CloudWatch destination) carry the actual prompt bodies; the tool scans them against four signature families (ignore-previous-instructions, system-prompt-leak, roleplay-jailbreak, token-smuggling) and checks consumed token counts against a threshold.

The tool verifies its own preconditions. A missing CloudTrail trail produces a cloudtrail-management-disabled finding rather than a false "no signals detected". Disabled or S3-only invocation logging produces a prompt-scan-logging-unavailable finding rather than a silent empty scan.

generate_ai_posture_report

Runs both tools and renders the combined findings as a markdown report (returned to Claude or stdout) plus a self-contained single-file HTML report: severity meter, collapsible finding entries with threat and rationale, remediation roadmap, and a compliance mapping table. Set BEDROCK_SECURITY_OUTPUT_DIR (the CLI sets it from --out-dir) to write the HTML file.

The posture score is a violation-weighted 0-100 value, not a pass rate. Weights: critical 25, high 10, medium 3, low 1. One critical finding caps the score at 75.

Every rule carries a written threat scenario and a rationale for why the check reduces risk. The full catalog, including compliance mappings, is committed at examples/rules-catalog.json and regenerated from source via npm run build:catalog.

A real report from a sandbox account (identifiers replaced with AWS documentation placeholders) is committed at examples/sample-posture-report.html.

What AWS Config can and cannot see

AWS publishes a Security and Governance Best Practices for Amazon Bedrock conformance pack of 76 managed AWS Config rules. Read the rules and the split is plain (as of July 2026): 3 rules evaluate Bedrock resources directly (AgentCore gateway authorization, runtime network placement, memory encryption). The other 73 are long-standing managed rules for the infrastructure around a Bedrock workload: S3 encryption and versioning, RDS and Neptune backups, API Gateway logging, OpenSearch encryption, Secrets Manager rotation.

That coverage is useful. If you already run AWS Config, deploy the pack. It is also a different layer. Config evaluates resource configuration state; this tool reads the contents that state points at: policy documents, guardrail definitions, prompt bodies. Neither replaces the other.

What you want to know Bedrock conformance pack bedrock-security-mcp
Bedrock-scoped IAM risk: wildcard actions and principals, missing condition keys, cross-account trust policies Not covered. No rules parse policy documents audit_bedrock_posture (see rule table above)
Guardrail quality: filter strength, PII entities, denied topics, contextual grounding Not covered. The pack has no guardrail rules Every guardrail fetched and evaluated
Prompt-injection signals in invocation logs, guardrail-less invocations, off-hours anomalies Not possible. Config does not read log content find_prompt_injection_signals
Infrastructure hygiene around the workload: S3, RDS/Neptune, OpenSearch, API Gateway, Secrets Manager, SNS/SQS 73 rules; its core strength Out of scope
Bedrock AgentCore posture 3 rules Out of scope in v1
Findings mapped to AI risk frameworks (OWASP LLM Top 10, OWASP Agentic Applications Top 10, NIST AI RMF, MITRE ATLAS) No AI-framework mappings Every rule, with threat scenario and rationale
Prerequisites and cost AWS Config recorder enabled; metered per configuration item and rule evaluation A read-only IAM profile; free
Where it runs Inside AWS, deployed per account or organization Laptop, CI, or any MCP client; the CLI exit code gates a pipeline

The pack watches the infrastructure your AI workload sits on. This tool audits the AI-specific risk inside it. Deploy the pack for the platform layer and run this audit for the Bedrock layer; the remediation roadmap in the HTML report assumes nothing about which you adopted first.

Security & Permissions

Features

The server implements the following security controls:

  1. AWS authentication via the SDK chain. No credential handling in the tool itself.
  2. Read-only by construction. Only List*, Get*, Lookup*, Describe*, and Filter* calls. No Put*, Create*, Delete*, Update*, or InvokeModel of any kind.
  3. Least privilege. The documented IAM policy grants exactly the 13 read actions the code calls, each mapped to a specific source function.
  4. Structured findings, not raw data. The LLM receives BedrockSecurityFinding[] objects. Prompt bodies from invocation logs are truncated to 200 characters before inclusion.
  5. Fail closed. AWS API errors become findings with status: "ERROR" and a concrete remediation, never stack traces. Unparseable policy documents surface as ERROR findings instead of passing silently.
Considerations

When running the server, consider the following:

  • AWS credentials: the principal needs the read actions listed below. Run it with a dedicated read-only profile, not an admin credential.
  • Network: the host needs outbound access to AWS service endpoints. No other outbound calls are made.
  • Data exposure: findings necessarily include resource identifiers (role names, ARNs). If you audit a production account with a cloud-hosted LLM, those identifiers are visible to the model provider.
  • Logging: enable CloudTrail on the account so the tool's own API calls are auditable.
Permissions

Deploy examples/tool-iam-policy.json to the principal that runs the audit. It grants exactly the 13 read-only actions the code calls, and nothing else:

  • iam:ListRoles, iam:ListRolePolicies, iam:GetRolePolicy, iam:ListAttachedRolePolicies, iam:GetPolicy, iam:GetPolicyVersion
  • cloudtrail:LookupEvents, cloudtrail:DescribeTrails
  • bedrock:GetModelInvocationLoggingConfiguration, bedrock:ListGuardrails, bedrock:GetGuardrail
  • logs:FilterLogEvents, logs:DescribeLogGroups

No iam:PassRole, no bedrock:InvokeModel, no write actions of any kind. Every action in the policy maps to a specific function in a specific source file.

Role Scoping Recommendations

In accordance with security best practices:

  1. Create a dedicated IAM principal for the audit (a role or user used only for this tool), with the policy above attached.
  2. Use a read-only profile. The documented policy is read-only by construction; do not broaden it with * actions or AdministratorAccess for convenience.
  3. Constrain by region where possible. Adding an aws:RequestedRegion condition to the policy limits blast radius if the credential leaks.
  4. Enable CloudTrail on the account so the tool's own List*/Get* calls are auditable.
  5. Review with IAM Access Analyzer periodically to confirm no unused permissions have crept in.
  6. Do not reuse a principal that has Bedrock invocation permissions. The auditor should not be able to invoke models, only inspect the configuration of those who can.
Sensitive Information Handling

Do not pass secrets or credentials through the tool.

  • Do not put AWS access keys, session tokens, or secrets in tool parameters or prompts.
  • Do not configure AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY in the MCP env block if you can avoid it. Use a named profile, SSO, or an instance role instead.
  • The tool reads only IAM policy documents, CloudTrail event metadata, Bedrock config, guardrail definitions, and invocation-log prompt bodies. It never reads Secrets Manager, Parameter Store, or KMS secret material.

Prompt bodies from invocation logs are truncated to 200 characters in findings. If your prompts may contain PII, be aware that this truncated text is returned to the LLM and written to the local HTML report. For production accounts with sensitive prompts, prefer the CLI mode (output stays on your machine) over an interactive cloud-hosted LLM session.

File System Access and Operating Mode

This server is intended for stdio mode only as a local process using a single user's credentials.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm bedrock-security-mcp

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229