SolInPy

v0.1.7 suspicious
4.0
Medium Risk

Python SDK for Solana

🤖 AI Analysis

Final verdict: SUSPICIOUS

The package exhibits moderate risks due to potential obfuscation and network activity, although these alone do not conclusively indicate malicious intent. Further investigation into the purpose of network calls and the reason for obfuscation is recommended.

  • base64 decoding indicating possible obfuscation
  • use of urllib.request.urlopen for network calls
Per-check LLM notes
  • Network: The use of urllib.request.urlopen suggests the package makes network calls, which is not inherently suspicious but should be reviewed to ensure it aligns with the package's intended functionality.
  • Shell: No shell execution patterns were detected.
  • Obfuscation: The presence of base64 decoding without clear context suggests potential obfuscation but could also be part of normal cryptographic operations.
  • Credentials: No patterns indicative of credential harvesting were found.
  • Metadata: The package shows low effort and possibly new maintainer, but no clear red flags.

🔬 Heuristic Checks

Outbound Network Calls score 9.0

Found 6 network call pattern(s)

  • elf._transport = transport or urllib.request.urlopen def _resolve_cluster_url(self) -> str:
  • ncode("utf-8") req = urllib.request.Request( self.endpoint, data=data, headers={"Con
  • _health(), "ok") @patch("urllib.request.urlopen") def test_get_latest_blockhash(self, mock_urlop
  • em falhas de rede @patch("urllib.request.urlopen") def test_retry_on_network_error(self, mock_url
  • mento de erro RPC @patch("urllib.request.urlopen") def test_rpc_error_response(self, mock_urlopen
  • return mock @patch("urllib.request.urlopen") @patch("time.sleep") def test_retry_on_htt
Code Obfuscation score 2.0

Found 1 obfuscation pattern(s)

  • """ try: return base64.b64decode(data) except Exception as e: raise ValueError(f"
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

No GitHub repository linked

  • No GitHub repository link found
Maintainer History score 4.0

2 maintainer concern(s) found

  • Author "SolPy Team" appears to have only 1 package on PyPI (new or inactive account)
  • Package has no PyPI classifiers (low effort / metadata quality)
Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with SolInPy
Create a simple decentralized finance (DeFi) app using the Python SDK 'SolInPy' for Solana. This app will serve as a basic portfolio tracker for users who hold various assets on the Solana blockchain. Users should be able to log in via a wallet provider such as Phantom, and the app will fetch their asset holdings from Solana, displaying them in a user-friendly format.

### Key Features:
1. **User Authentication**: Allow users to log in through their Solana wallet (e.g., Phantom).
2. **Asset Tracking**: Fetch and display the user's asset balances from Solana. Assets could include SOL (native token), USDC, and other popular tokens.
3. **Price Integration**: Integrate with a price oracle (such as Pyth Network) to show real-time prices for each asset.
4. **Portfolio Summary**: Provide a summary of the total value of the portfolio in USD.
5. **Notifications**: Implement a feature where users can set up notifications for specific price thresholds of their assets.
6. **Responsive UI**: Ensure the app has a responsive UI that works well on both desktop and mobile devices.
7. **Security**: Implement best practices for security, ensuring user data and transactions are handled securely.

### Utilization of 'SolInPy':
- Use 'SolInPy' to interact with the Solana blockchain, specifically for querying account balances and handling wallet interactions.
- Leverage 'SolInPy' to sign and submit transactions if needed (for example, setting up or modifying notification preferences).
- Use 'SolInPy' to explore more advanced features like program interaction, if applicable, to enhance the functionality of the app.

This project aims to provide a practical use case for 'SolInPy', demonstrating its capabilities in building real-world applications on the Solana network.