AI Analysis
The package exhibits a moderate level of risk due to its execution of external commands and potential for accessing sensitive AWS credentials, despite no clear evidence of malicious intent.
- Executing external commands increases shell risk
- Potential retrieval of AWS credentials
Per-check LLM notes
- Network: The network calls seem to be making HTTP requests to external services which could be legitimate, but without context on the purpose, there's some risk of unintended data transfer.
- Shell: Executing external commands like 'osqueryi', 'git', and 'npm' from within a package can indicate potential for unintended behavior or even malicious activities, especially if not clearly documented.
- Obfuscation: No signs of obfuscation detected.
- Credentials: The code appears to be attempting to retrieve AWS region settings from environment variables which could indicate an attempt to access sensitive information.
Heuristic Checks
Found 6 network call pattern(s)
t_token req = urllib.request.Request( f"{wawsdb_url.rstrip('/')}/scan) with urllib.request.urlopen(req, timeout=5) as resp: data =(prompt: str): async with httpx.AsyncClient() as client: response = await client.post(----- try: resp = httpx.get(_BEDROCK_RANGES_URL, timeout=3.0) resp.raise_for_sta_token try: with httpx.Client(timeout=30.0, verify=certifi.where()) as client: # type: ig[tuple] = set() with httpx.Client(verify=True) as client: token = self._get_access
No obfuscation patterns detected
Found 6 shell execution pattern(s)
is installed try: subprocess.run( ["osqueryi", "--version"], capture_t, str]: try: r = subprocess.run( ["git", *args], capture_output=True""" try: result = subprocess.run( ["npm", "config", "get", "prefix"],"json"] result = subprocess.run(cmd, capture_output=True, text=True, timeout=60)esolve() try: r = subprocess.run( ["git", "remote", "get-url", "origin"],repo.""" try: r = subprocess.run( ["git", "-C", str(scan_root), "remote", "get-ur
Found 4 credential access pattern(s)
ort] _region = region or os.environ.get("AWS_DEFAULT_REGION") or os.environ.get("AWS_REGION") client.get("AWS_DEFAULT_REGION") or os.environ.get("AWS_REGION") client = boto3.client("cloudtrail", region_nameregion = ( os.environ.get("AWS_DEFAULT_REGION") or os.environ.get("AWS_REGION") or "us-east.get("AWS_DEFAULT_REGION") or os.environ.get("AWS_REGION") or "us-east-1" ) client = b
No typosquatting candidates detected
Email domain looks legitimate: defendai.tech>
All external links appear legitimate
Repository Defend-AI-Tech-Inc/agent-discover-scanner 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
Build a simple Python application using the agentdiscover package to demonstrate its core features.