
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
A fast Python dependency analyzer that automatically discovers and extracts third-party imports
A Python dependency analyzer inspired by Black's implementation that automatically discovers and extracts third-party imports from your Python projects. It scans your codebase to identify external dependencies while filtering out project-internal imports.
PIL
→ pillow
, cv2
→ opencv-python
)requirements.txt
file⚠️ Note: The tool may occasionally fail to identify some dependencies due to complex import patterns or dynamic imports.
pip install depscan
You can use depscan either as a module or directly as a command (like Black):
# As a command (recommended)
depscan src/
depscan . # Current directory
depscan src/ tests/ # Multiple paths
# As a module
python -m depscan src/
python -m depscan .
Options:
depscan src/ --no-save # Don't generate requirements file
depscan src/ --workers 4 # Specify number of parallel workers
The tool will:
requirements.txt
file (or requirements-depscan.txt
if the former exists)Found a bug or want to improve the package name mapping? Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
A fast Python dependency analyzer that automatically discovers and extracts third-party imports
We found that depscan demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.