agentscore-commerce

v2.4.0 suspicious
6.0
Medium Risk

Agent commerce SDK for Python — identity middleware (FastAPI, Flask, Django, AIOHTTP, Sanic, ASGI) + payment helpers + 402 builders + discovery + Stripe multichain. The full merchant-side toolkit for AgentScore-powered agent commerce.

🤖 AI Analysis

Final verdict: SUSPICIOUS

The package exhibits moderate risk due to potential obfuscation of code/data and metadata concerns like an anonymous author and a new/inactive account. While there's no direct evidence of malicious activity, these factors raise suspicion about its legitimacy.

  • Obfuscation risk of 5/10
  • Metadata risk of 5/10
Per-check LLM notes
  • Network: No network calls detected, which is normal unless the package requires network operations.
  • Shell: No shell execution patterns detected, indicating no immediate signs of malicious activity.
  • Obfuscation: The observed patterns suggest obfuscation of data, which could be benign (e.g., for storing configuration settings) but may also indicate an attempt to hide malicious code.
  • Credentials: No clear indicators of credential harvesting were found, suggesting a low risk of direct credential theft.
  • Metadata: The package shows some red flags such as an author with no details and a new/inactive account, but lacks clear indicators of malicious intent.

📦 Package Quality Overall: Medium (5.2/10)

◈ Medium Test Suite 6.0

Partial test coverage signals detected

  • Test runner config found: pyproject.toml
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (38143 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 329 type-annotated function signatures detected in source
◈ Medium Multiple Contributors 6.0

Limited contributor diversity

  • 2 unique contributor(s) across 100 commits in agentscore/python-commerce
  • Two distinct contributors found

🔬 Heuristic Checks

✓ Outbound Network Calls

No suspicious network call patterns found

⚠ Code Obfuscation score 4.0

Found 2 obfuscation pattern(s)

  • decoded = json.loads(base64.b64decode(encoded).decode()) body_obj["x402Version"] = x402v
  • ne try: decoded = base64.b64decode(x402_payment_header, validate=False).decode("utf-8")
✓ Shell / Subprocess Execution

No shell execution patterns detected

✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

No author email provided

✓ 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 agentscore-commerce
Create a mini e-commerce platform called 'AgentMarket' using the 'agentscore-commerce' package. This platform will serve as a demonstration of how to integrate identity middleware, payment helpers, 402 builders, discovery services, and Stripe multichain functionalities into a single application.

Step 1: Set up the environment
- Install Python and set up a virtual environment.
- Install the 'agentscore-commerce' package.

Step 2: Build the Identity Middleware
- Use FastAPI framework to create the backend service.
- Implement user registration, login, and logout functionalities.
- Ensure that all user interactions are secured using JWT tokens.

Step 3: Integrate Payment Helpers
- Implement a checkout page where users can select products and proceed to payment.
- Utilize the payment helper functions provided by 'agentscore-commerce' to handle payment processing.
- Ensure support for multiple payment methods including credit cards and cryptocurrencies.

Step 4: Implement 402 Builders
- Create a feature where users can initiate deferred payments.
- Use the 402 builder utilities from 'agentscore-commerce' to manage these deferred payments efficiently.

Step 5: Add Discovery Services
- Allow users to search for products based on various criteria such as price, category, and availability.
- Utilize the discovery services provided by 'agentscore-commerce' to enhance the search functionality.

Step 6: Integrate Stripe Multichain
- Provide a seamless integration with Stripe for handling cryptocurrency transactions.
- Test the integration thoroughly to ensure that all transactions are processed securely and accurately.

Step 7: Deployment
- Deploy the application on a cloud platform such as AWS, Azure, or Heroku.
- Ensure that the deployment process includes setting up necessary security measures like SSL certificates and firewall rules.

Suggested Features:
- User reviews and ratings for products.
- Wishlist and cart functionalities.
- Admin panel for managing products and users.
- Email notifications for order confirmations and payment receipts.

This project aims to showcase the versatility and power of the 'agentscore-commerce' package in building robust and secure e-commerce applications.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!