forcefield

v0.8.0 safe
3.1
Low Risk

Zero-dependency AI security library -- prompt-injection detection, PII redaction, content safety, rate limiting, abuse detection, tool governance, and security evals for LLMs in 3 lines of Python.

📦 Package Quality Overall: Medium (5.6/10)

✦ High Test Suite 9.0

Test suite present — 15 test file(s) found

  • Test runner config found: pyproject.toml
  • 15 test file(s) detected (e.g. test_attacks.py)
  • Classifier: Framework :: Pytest
◈ Medium Documentation 7.0

Some documentation present

  • Documentation URL: "Documentation" -> https://datasciencetech.ca/en/python-sdk
  • Detailed PyPI description (13749 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
  • 255 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 6.0

Found 4 network call pattern(s)

  • rs.update(headers) req = urllib.request.Request(url, data=payload, headers=req_headers, method="POST
  • "POST") try: with urllib.request.urlopen(req, timeout=timeout) as resp: body = re
  • f._headers} req = urllib.request.Request(self._url, data=payload, headers=headers, method="PO
  • s, method="POST") urllib.request.urlopen(req, timeout=10) except Exception:
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • r: try: decoded = base64.b64decode(s, validate=True) result = decoded.decode('utf-8', e
  • try: decoded = base64.b64decode(padded, validate=True).decode('utf-8', errors='strict')
  • ----------------------- # eval() # ----------------------------------------------------
  • -------------------- def eval( self, suite_or_path: Any, *,
  • --------------------- # Guard.eval() # --------------------------------------------------------
  • uard() report = guard.eval({ "name": "Guard Dict Eval", "cases"
✓ Shell / Subprocess Execution

No shell execution patterns detected

⚠ Credential Harvesting score 7.5

Found 3 credential access pattern(s)

  • the file system tool to read /etc/passwd."), Attack("tool_misuse-003", "tool_misuse", "high", "m
  • ult = scan_command("chmod 777 /etc/passwd") assert result.dangerous is True assert re
  • = scan_command("echo 'bad' > /etc/hosts") assert result.dangerous is True assert re
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: datasciencetech.ca>

✓ 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 4.0

2 maintainer concern(s) found

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

💬 Discussion Feed

Leave a comment

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