AI Analysis
The package exhibits a moderate level of risk due to its execution of shell commands and incomplete maintainer metadata, which could indicate potential misuse or unauthorized access.
- High shell risk from executing potentially dangerous commands.
- Incomplete maintainer metadata raises concerns about package origin and intent.
Per-check LLM notes
- Network: Making network calls to GitHub API is common and usually benign, but the context of use should be verified.
- Shell: Executing shell commands like 'wmic' and 'ps aux' can be used for legitimate purposes such as process monitoring, but also indicate potential risk for unauthorized access or system manipulation.
- Obfuscation: Base64 decoding is commonly used for data serialization and not necessarily indicative of malicious activity.
- Credentials: Direct access to environment variables for tokens can pose risks if not handled securely; this may indicate a need for better credential management practices.
- Metadata: The maintainer has an incomplete profile and seems to be new or inactive, raising some suspicion.
Package Quality Overall: Medium (6.6/10)
Test suite present — 6 test file(s) found
Test runner config found: pyproject.toml6 test file(s) detected (e.g. test_cli.py)
Some documentation present
Documentation URL: "Documentation" -> https://github.com/microsoft/agent-governance-toolkit/tree/mDetailed PyPI description (10134 chars)
No contributing guide or governance files found
No CONTRIBUTING, CODE_OF_CONDUCT, or governance files found
Partial type annotation coverage
35 type-annotated function signatures detected in source
Active multi-contributor project
14 unique contributor(s) across 100 commits in microsoft/agent-governance-toolkitActive community — 5 or more distinct contributors
Heuristic Checks
Found 1 network call pattern(s)
{token}" async with httpx.AsyncClient( base_url="https://api.github.com",
Found 1 obfuscation pattern(s)
ue content = base64.b64decode(resp.json().get("content", "")).decode(
Found 2 shell execution pattern(s)
""" try: result = subprocess.run( ["wmic", "process", "get", "ProcessId,CommandLi""" try: result = subprocess.run( ["ps", "aux"], # noqa: S607 — known CLI tool p
Found 1 credential access pattern(s)
oken = kwargs.get("token") or os.environ.get("GITHUB_TOKEN", "") repos: list[str] = kwargs.get("repos", [])
No typosquatting candidates detected
Email domain looks legitimate: microsoft.com>
All external links appear legitimate
Repository microsoft/agent-governance-toolkit appears legitimate
2 maintainer concern(s) found
Author name is missing or very shortAuthor "" appears to have only 1 package on PyPI (new or inactive account)
No known vulnerabilities found in OSV database.
AI App Starter Prompt
Create a Shadow AI Agent Inventory Manager using the 'agentmesh_discovery' Python package. This tool will serve as a central hub for managing and monitoring Shadow AI agents within an organization. Your task is to design and implement a command-line interface (CLI) application that leverages the capabilities of 'agentmesh_discovery' to discover, manage, and report on Shadow AI agents. Step 1: Setup your development environment by installing the necessary packages including 'agentmesh_discovery'. Ensure you have Python installed and set up a virtual environment for this project. Step 2: Define the core functionalities of your application: - Discover Shadow AI agents across different networks. - Retrieve detailed information about each discovered agent, such as its status, location, and capabilities. - Allow users to filter and search through the inventory based on specific criteria like agent type, network location, etc. - Provide options to mark agents as active/inactive or update their metadata. Step 3: Utilize 'agentmesh_discovery' to integrate these functionalities into your application. Use its API to query and interact with Shadow AI agents. Step 4: Implement a user-friendly CLI that guides users through the process of discovering, managing, and reporting on Shadow AI agents. Include clear commands and help messages. Step 5: Enhance the application by adding additional features such as: - Automated health checks for agents. - Notifications for critical events related to agents (e.g., failure to connect). - Integration with external tools or platforms for extended functionality. Your final product should demonstrate proficiency in using 'agentmesh_discovery' and provide a robust solution for managing Shadow AI agents.