har-capture

v0.18.0 safe
3.9
Low Risk

HAR capture and PII sanitization library for network traffic analysis

πŸ“¦ Package Quality Overall: Medium (5.6/10)

✦ High Test Suite 9.0

Test suite present β€” 20 test file(s) found

  • Test runner config found: conftest.py
  • Test runner config found: pyproject.toml
  • 20 test file(s) detected (e.g. conftest.py)
β—ˆ Medium Documentation 7.0

Some documentation present

  • Documentation URL: "Documentation" -> https://github.com/solentlabs/har-capture#readme
  • Detailed PyPI description (8251 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
  • 922 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)

  • y: with ( socket.create_connection((host, port), timeout=timeout) as raw_sock, cont
  • evel errors """ req = urllib.request.Request(url, method=method) if url.startswith("https://"
  • _ssl_context() return urllib.request.urlopen(req, timeout=timeout, context=ctx) return urllib
  • eout, context=ctx) return urllib.request.urlopen(req, timeout=timeout) def _parse_target(target: st
  • eJar() handlers: list[urllib.request.BaseHandler] = [urllib.request.HTTPCookieProcessor(self._jar
  • rllib.request.BaseHandler] = [urllib.request.HTTPCookieProcessor(self._jar)] if self.base_url.sta
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • try: decoded = base64.b64decode(auth_header[6:]).decode("utf-8") user, passwd =
  • body", "") return base64.b64decode(raw) if result.get("base64Encoded") else raw.encode()
  • n text try: raw = base64.b64decode("".join(text.split()), validate=True) except ValueError:
  • None try: return base64.b64decode(value, validate=True).decode("utf-8") except Exception:
  • added) % 4) decoded = base64.b64decode(padded).decode("utf-8", errors="strict") except Exceptio
  • import base64 assert base64.b64decode(content["text"]) == body def test_corrupt_har_returns_z
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • str) -> str: merge_base = subprocess.run( ["git", "merge-base", base, "HEAD"], check=True, ca
  • ).stdout.strip() return subprocess.run( ["git", "diff", "-U0", "--no-color", merge_base, "-
  • """ try: result = subprocess.run( ["git", "rev-parse", "--show-toplevel"],
  • """ try: result = subprocess.run( ["git", "rev-parse", "--abbrev-ref", "HEAD"],
  • """ try: result = subprocess.run( ["git", "status", "--porcelain"], c
  • """ try: result = subprocess.run( ["git", "tag", "-l", f"v{version}"],
⚠ Credential Harvesting score 2.5

Found 1 credential access pattern(s)

  • LoginTransport("file:///etc/passwd") def test_credentials_from_env() -> None: creds = Cr
βœ“ Typosquatting

No typosquatting candidates detected

βœ“ Registered Email Domain

No author email provided

⚠ Suspicious Page Links score 2.0

Found 1 suspicious link(s) on the package page

  • Link to raw IP address: https://192.168.100.1
⚠ 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 "Solent Labsβ„’" 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 har-capture
Build a simple Python application using the har-capture package to demonstrate its core features.

πŸ’¬ Discussion Feed

Leave a comment

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