AI Analysis
The package shows low risk in terms of network calls, shell commands, obfuscation, and credential harvesting. However, the recent and concentrated commits along with the incomplete and new maintainer's profile raise concerns about potential supply-chain risks.
- Suspiciously recent and concentrated commits
- Incomplete and new maintainer's profile
Per-check LLM notes
- Network: No network calls detected, indicating no immediate risk from network activity.
- Shell: Git commands suggest the package may be using Git for version control or other development purposes within its functionality, which is not inherently malicious but should be reviewed for context.
- Obfuscation: No obfuscation patterns detected, indicating low risk of malicious obfuscation.
- Credentials: No credential harvesting patterns detected, indicating low risk of malicious credential theft.
- Metadata: The repository has suspiciously recent and concentrated commits, and the maintainer's profile is incomplete and new.
Package Quality Overall: Low (4.4/10)
Partial test coverage signals detected
2 test file(s) detected (e.g. test_asfswhid.py)
Some documentation present
Detailed PyPI description (14728 chars)
No contributing guide or governance files found
No CONTRIBUTING, CODE_OF_CONDUCT, or governance files found
No type annotations detected
No type annotations, py.typed marker, or stub files detected
Active multi-contributor project
3 unique contributor(s) across 20 commits in apache/tooling-asfswhidSmall but multi-author team (3–4 contributors)
Heuristic Checks
No suspicious network call patterns found
No obfuscation patterns detected
Found 5 shell execution pattern(s)
bytes(data) git_hex = subprocess.check_output( ["git", "hash-object", str(f)], text=Truepo with known content subprocess.run(["git", "init", str(tmp_path)], check=True,capture_output=True) subprocess.run(["git", "-C", str(tmp_path), "config",ite_bytes(b"Hello\n") subprocess.run(["git", "-C", str(tmp_path), "add", "."],capture_output=True) subprocess.run( ["git", "-C", str(tmp_path), "commit", "-m", "i
No credential harvesting patterns detected
No typosquatting candidates detected
No author email provided
All external links appear legitimate
Git history flags: All 20 commits happened within 24 hours
All 20 commits happened within 24 hours
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
Develop a mini-application named 'SWHID-Manager' using Python that leverages the 'asfswhid' package to generate and manage Software Heritage Identifiers (SWHIDs). This application will serve as a tool for developers to easily create and validate SWHIDs based on ISO/IEC 18670:2025 standards. The application should include the following functionalities: 1. **Generate SWHID**: Users should be able to input a software artifact's URL or local path and get its corresponding SWHID. 2. **Validate SWHID**: The app must provide a way to verify if a given SWHID is valid according to the SWHID v1.2 standard. 3. **Metadata Lookup**: If possible, the application should also allow users to fetch metadata associated with a provided SWHID from the Software Heritage archive. 4. **Command Line Interface (CLI)**: Implement a simple CLI where users can interact with the application through commands like `generate`, `validate`, and `lookup`. 5. **Documentation**: Provide clear documentation explaining how to install the application, how to use each feature, and any limitations or considerations. The 'asfswhid' package will be primarily used for generating and validating SWHIDs. Ensure your code is well-documented and includes error handling for invalid inputs or network issues when fetching metadata.
💬 Discussion Feed
No discussion yet. Be the first to share your thoughts!
Report Abuse / Security Issue