ask-shell

v0.10.1 safe
3.0
Low Risk

CLIs with prompts, shell runs, and testable flows

πŸ€– AI Analysis

Final verdict: SAFE

The package 'ask-shell' presents minimal risks with no network calls, obfuscation, or credential harvesting. The moderate shell execution risk is mitigated by the absence of other red flags.

  • No network calls detected
  • Low obfuscation risk
  • No credential harvesting detected
Per-check LLM notes
  • Network: No network calls detected, which is typical and not suspicious.
  • Shell: Detection of shell execution suggests potential for executing arbitrary commands, which could be used maliciously if not properly controlled.
  • Obfuscation: No obfuscation patterns detected, indicating low risk of malicious intent related to code obfuscation.
  • Credentials: No credential harvesting patterns detected, suggesting no immediate risk of secret or sensitive information being stolen.
  • Metadata: The author's information is incomplete and the maintainer has only one package, which may indicate a less experienced or potentially suspicious account.

πŸ“¦ Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

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

  • Test runner config found: pyproject.toml
  • 1 test file(s) detected (e.g. test_docs.py)
β—ˆ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (2187 chars)
β—‹ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
β—ˆ Medium Type Annotations 5.0

Partial type annotation coverage

  • 132 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

No suspicious network call patterns found

βœ“ Code Obfuscation

No obfuscation patterns detected

⚠ Shell / Subprocess Execution score 4.0

Found 2 shell execution pattern(s)

  • g.popen_kwargs ) with subprocess.Popen(config.shell_input, shell=True, **kwargs) as proc: # type:
  • ess.Popen(config.shell_input, shell=True, **kwargs) as proc: # type: ignore queue.put_nowai
βœ“ Credential Harvesting

No credential harvesting patterns detected

βœ“ Typosquatting

No typosquatting candidates detected

βœ“ Registered Email Domain

Email domain looks legitimate: gmail.com>

βœ“ Suspicious Page Links

All external links appear legitimate

βœ“ Git Repository History

No GitHub repository linked

  • No GitHub repository link found
⚠ 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 ask-shell
Create a command-line utility named 'ShellHelper' using the Python package 'ask-shell'. This utility will serve as a personal assistant for developers, providing interactive shell commands, prompt-based configurations, and automated workflows. Here’s a step-by-step guide on how to implement it:

1. **Project Setup**: Initialize a new Python project and install 'ask-shell' along with any other necessary packages.
2. **Core Functionality**: Implement a feature that allows users to input shell commands directly from the CLI. Use 'ask-shell' to handle these commands and display their outputs.
3. **Interactive Prompt**: Design an interactive prompt that asks users if they need help with specific tasks such as code formatting, running tests, or managing virtual environments. Use 'ask-shell' to manage these interactions and provide appropriate responses.
4. **Automated Workflows**: Create predefined workflows for common development tasks. For example, a workflow to set up a new Python project including virtual environment creation, package installation, and basic file structure setup. Use 'ask-shell' to execute these workflows step-by-step, ensuring each step is tested and confirmed before moving to the next.
5. **Customization Options**: Allow users to customize the behavior of 'ShellHelper' through configuration files. Use 'ask-shell' to read these configurations and apply them during runtime.
6. **Testing and Validation**: Ensure all functionalities are thoroughly tested. Use 'ask-shell' to simulate user inputs and validate the outputs against expected results.
7. **Documentation**: Provide clear documentation on how to use 'ShellHelper', including examples of how to run shell commands, customize workflows, and troubleshoot common issues.

Use 'ask-shell' to streamline the process of building 'ShellHelper', leveraging its capabilities for handling prompts, executing shell commands, and ensuring that the workflows are testable and reliable.

πŸ’¬ Discussion Feed

Leave a comment

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