leakscan

v0.5.2 safe
3.3
Low Risk

Find leaked API keys and secrets in code, git history, notebooks, archives, Docker images and packages

📦 Package Quality Overall: Medium (5.6/10)

✦ High Test Suite 9.0

Test suite present — 4 test file(s) found

  • Test runner config found: pyproject.toml
  • 4 test file(s) detected (e.g. test_rules.py)
◈ Medium Documentation 7.0

Some documentation present

  • Documentation URL: "Documentation" -> https://vasishta03.github.io/leakscan/
  • Detailed PyPI description (6466 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

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

Partial type annotation coverage

  • Classifier: Typing :: Typed
  • 243 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

⚠ Outbound Network Calls score 9.0

Found 6 network call pattern(s)

  • import requests r = requests.get(source, timeout=30, headers={"User-Agent": f"leakscan/{__ver
  • None): self.session = requests.Session() self.session.headers.update({ "Accept"
  • -> bool: try: r = requests.post(webhook_url, json=payload, timeout=_TIMEOUT) return
  • -> list[dict]: session = requests.Session() session.headers.update({"Accept": "application/vnd.git
  • 00_000_000) -> None: with requests.get(url, headers=UA, stream=True, timeout=60) as r: r.ra
  • i/{name}/json" data = requests.get(url, headers=UA, timeout=30) data.raise_for_status()
⚠ Code Obfuscation score 4.0

Found 2 obfuscation pattern(s)

  • try: raw = base64.b64decode(m.group(0) + "=" * (-len(m.group(0)) % 4), validate=True)
  • try: return base64.b64decode(data["content"]).decode("utf-8", errors="ignore") ex
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • str]: try: proc = subprocess.run( ["git", "-C", str(root), *args], ca
  • e}") try: proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) exc
  • args] try: proc = subprocess.run(cmd, capture_output=True, timeout=120) except FileNotFou
  • = [url, str(dest)] proc = subprocess.run(cmd, capture_output=True, text=True, env=env, timeout=900)
  • d or not on PATH") return subprocess.run(["docker", *args], capture_output=True, timeout=timeout) d
  • def _init_git_repo(path): subprocess.run(["git", "init", "-q"], cwd=path, check=True) subprocess.
⚠ Credential Harvesting score 5.0

Found 2 credential access pattern(s)

  • ?:^|/)\.pypirc$"), _p("LS-NETRC-001", "netrc Password", r"(?i)\bpassword\s+(\S{6,})", "HIGH", "Password in .netrc", path=r"(?
  • manage/account/token/"), "netrc Password": (".netrc credentials are sent automatically by curl, git
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

No author email provided

✓ Suspicious Page Links

All external links appear legitimate

⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 2.0

1 maintainer concern(s) found

  • Author "Vasishta Nandipati" 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 leakscan
Build a simple Python application using the leakscan package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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