agent-prompt-injection-firewall-mcp

v1.0.6 suspicious
6.0
Medium Risk

The WAF for agents. Pattern-based + heuristic firewall scans prompts, RAG documents, tool arguments, A2A payloads for OWASP LLM01 prompt injection BEFORE they reach a downstream agent. Curated from OWASP + academia + production incidents.

🤖 AI Analysis

Final verdict: SUSPICIOUS

The package exhibits moderate risk due to potential obfuscation techniques aimed at evading static analysis, along with questionable metadata that lacks maintainer history and low repository engagement.

  • Obfuscation risk of 7/10
  • Metadata risk of 5/10
Per-check LLM notes
  • Network: No network calls detected, which is normal unless the package requires network functionality.
  • Shell: No shell execution patterns detected, indicating it does not execute system commands.
  • Obfuscation: The code pattern suggests an attempt to obfuscate the import and execution of time-related functionality, which could be used for evading simple static analysis.
  • Credentials: No clear evidence of credential harvesting is present, but further investigation may be needed to rule out subtle extraction methods.
  • Metadata: The package shows signs of potential malicious activity due to lack of maintainer history and low repository engagement.

🔬 Heuristic Checks

Outbound Network Calls

No suspicious network call patterns found

Code Obfuscation score 2.0

Found 1 obfuscation pattern(s)

  • nboarded": True, "timestamp": __import__("time").strftime("%Y-%m-%d")}, f) except: pass _show_o
Shell / Subprocess Execution

No shell execution patterns detected

Credential Harvesting

No credential harvesting patterns detected

Typosquatting

No typosquatting candidates detected

Registered Email Domain

Email domain looks legitimate: meok.ai>

Suspicious Page Links

All external links appear legitimate

Git Repository History score 2.5

Git history flags: Repository has zero stars and zero forks

  • Repository has zero stars and zero forks
Maintainer History score 4.0

2 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" appears to have only 1 package on PyPI (new or inactive account)
Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with agent-prompt-injection-firewall-mcp
Create a Python-based mini-application named 'SecurePromptGuard' that leverages the 'agent-prompt-injection-firewall-mcp' package to safeguard against prompt injection attacks. This application should serve as a middleware solution between user input and downstream agents, ensuring that all incoming prompts are scanned for malicious content before being processed further. The application should include the following functionalities:

1. **User Interface**: Develop a simple command-line interface (CLI) for users to interact with the application. Users should be able to input their prompts directly through the CLI.

2. **Prompt Scanning**: Utilize the 'agent-prompt-injection-firewall-mcp' package to scan each prompt for patterns and heuristics indicative of prompt injection attacks. The application should support both pattern-based scanning (using predefined attack signatures) and heuristic analysis (evaluating the likelihood of an attack based on behavior).

3. **RAG Document Validation**: Integrate functionality to validate any Request-Answer Generation (RAG) documents attached to the prompt. Ensure that these documents are not tampered with or contain malicious content.

4. **Tool Argument Filtering**: Implement a feature to filter out potentially harmful arguments passed to tools invoked within the prompt. This includes checking for suspicious parameters or values that could lead to unauthorized access or data leakage.

5. **Alert System**: Upon detecting a potential threat, the application should log the incident and alert the user via email or SMS. Include configurable settings for different levels of alerts based on the severity of the detected threat.

6. **Configuration Management**: Allow users to customize the application's behavior through a configuration file. This should include options to enable/disable certain types of scans, adjust sensitivity levels, and specify alert destinations.

7. **Documentation and Support**: Provide comprehensive documentation on how to use the application, including setup instructions, configuration options, and troubleshooting tips. Also, include a section detailing the common signs of prompt injection attacks and best practices for preventing them.

The 'agent-prompt-injection-firewall-mcp' package will be crucial in implementing the prompt scanning feature, which forms the core security mechanism of 'SecurePromptGuard'. By integrating this package, the application aims to protect downstream agents from a wide range of prompt injection attacks, thereby enhancing overall system security.