diffsense

v2.3.1 safe
3.7
Low Risk

MR/PR risk audit: semantic diff + rule engine. Run in CI as image or pip.

📦 Package Quality Overall: Low (4.4/10)

✦ High Test Suite 9.0

Test suite present — 7 test file(s) found

  • 7 test file(s) detected (e.g. test_adaptive_scheduling.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (1399 chars)
○ Low Contributing Guide 2.0

No contributing guide or governance files found

  • No CONTRIBUTING, CODE_OF_CONDUCT, or governance files found
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 219 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Unable to verify contributor count: no GitHub repository found

  • No GitHub repository linked — contributor count unavailable

🔬 Heuristic Checks

⚠ Outbound Network Calls score 6.0

Found 4 network call pattern(s)

  • ler way: # response = requests.get(self.pr.diff_url, headers={'Authorization': f'token {token}'
  • } response = requests.get(self.pr.url, headers=headers) response.raise_for_sta
  • the diff. response = requests.get(self.pr.url, headers=headers) response.raise_for_sta
  • try: response = requests.get(diff_url, headers=headers) response.raise_for_st
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • em\s*\('), re.compile(r'exec\s*\('), re.compile(r'popen\s*\('),
  • en\s*\('), re.compile(r'shell_exec\s*\('), ], 'format_string': [
  • ection': [ re.compile(r'exec\.Command'), re.compile(r'syscall\.Exec'),
  • \s+Thread\('), re.compile(r'executor\.submit'), re.compile(r'CompletableFuture\.
  • ent.*\+'), re.compile(r'executeQuery.*\+'), re.compile(r'createStatement
  • ection': [ re.compile(r'child_process\.exec\('), re.compile(r'child_process\.execSync\(
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • ash try: result = subprocess.run( ["git", "rev-parse", "--short", "HEAD"],
  • e.perf_counter() r0 = subprocess.run(cmd, env=env, cwd=pkg_dir, capture_output=True, timeout=60)
  • e.perf_counter() r1 = subprocess.run(cmd, env=env, cwd=pkg_dir, capture_output=True, timeout=60)
  • mits_error_json(): proc = subprocess.run( [sys.executable, "main.py", str(REPO_ROOT / "no_suc
  • de("utf-16") ) proc = subprocess.run( [sys.executable, "main.py", str(utf16)], cw
  • ath / "quiet.json" proc = subprocess.run( [ sys.executable, "cli.py", "replay", s
⚠ Credential Harvesting score 5.0

Found 2 credential access pattern(s)

  • et_user().login if False else os.environ.get("GITHUB_TOKEN")}', 'Accept': 'application/vnd.github.v3.diff
  • use requests. # Note: os.environ.get("GITHUB_TOKEN") is usually passed via constructor, # but here we
✓ 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 6.0

3 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" 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 diffsense
Build a simple Python application using the diffsense package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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