cordon-ai

v0.2.3 suspicious
4.7
Medium Risk

The pre-execution control layer for AI agents. Block dangerous actions before they happen.

πŸ“¦ Package Quality Overall: Low (4.8/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_suppression.py)
β—ˆ Medium Documentation 7.0

Some documentation present

  • Documentation URL: "Documentation" -> https://github.com/Ashok-kumar290/cordon#readme
  • Detailed PyPI description (26172 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

  • 179 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)

  • ncode("utf-8") req = urllib.request.Request( self._endpoint, data=body,
  • try: with urllib.request.urlopen(req, timeout=self._timeout) as resp:
  • -untyped-def] # Mimic urllib.request.urlopen's return shape. with self._lock:
  • " return requests.get(url).json()\n" " except:\n"
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • ound-trip cleanly through ``base64.b64decode(..., validate=True)``. The round-trip filter removes the v
  • s fine because the # strict ``base64.b64decode(..., validate=True)`` step that follows # is what actually f
  • """ try: return base64.b64decode(candidate, validate=True) except (binascii.Error, ValueE
  • heck_*(..., shell=True)`` * ``eval(...)`` and ``exec(...)`` *on dynamic arguments* (a literal
  • Severity.DANGEROUS, "eval(dynamic)": Severity.DANGEROUS, "exec(dynamic)
  • Severity.DANGEROUS, "eval(literal)": Severity.SUSPICIOUS, "exec(literal
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • : helper.py: "import os; os.system(' '.join(['rm', '-rf', '/']))" …and pass it through because
  • the AST contains any of: * ``os.system(...)`` * ``os.popen(...)`` * ``subprocess.Popen(..., shell=T
  • of: * ``os.system(...)`` * ``os.popen(...)`` * ``subprocess.Popen(..., shell=True)`` / ``subproc
  • orkspace_files={"runner.py": "subprocess.run(['ls', user_dir])\n"}, changes={"runner.py": "
  • changes={"runner.py": "subprocess.run(f'ls {user_dir}', shell=True)\n"})), _t("sw-b-1", "secu
  • r) -> str: return subprocess.check_output(command, shell=True).decode() """ guard = guard or G
⚠ Credential Harvesting score 10.0

Found 6 credential access pattern(s)

  • l`), # filesystem paths (`/etc/shadow`, `./build`), version strings # (`1.2.3`). Anything wit
  • ies with paths like ``../../../etc/passwd``); * extract with **absolute paths** that overwrite system
  • rchive β€” turning a tar of ``/etc/passwd`` into an arbitrary system-file overwrite. Almost never l
  • nd="network", reads=["~/.ssh/id_rsa"], network=["https://abcd-1234.ngrok.io/leak"],
  • reads=["/home/u/.aws/credentials"], workspace_files={"/home/u/.aws/credentials
  • workspace_files={"/home/u/.aws/credentials": "[default]\naws_access_key
βœ“ Typosquatting

No typosquatting candidates detected

βœ“ Registered Email Domain

Email domain looks legitimate: gmail.com>

⚠ Suspicious Page Links score 4.0

Found 2 suspicious link(s) on the package page

  • Non-HTTPS external link: http://127.0.0.1:7860/?t=long-random-string
  • Non-HTTPS external link: http://127.0.0.1:7860
⚠ 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 cordon-ai
Build a simple Python application using the cordon-ai package to demonstrate its core features.

πŸ’¬ Discussion Feed

Leave a comment

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