aws-bootstrap-g4dn

v0.18.0 suspicious
6.0
Medium Risk

Bootstrap AWS EC2 GPU instances for hybrid local-remote development

🤖 AI Analysis

Final verdict: SUSPICIOUS

The package exhibits several suspicious characteristics, including potential obfuscation techniques and risky shell execution patterns, which raise concerns about its legitimacy and security.

  • High shell risk indicating possible unauthorized access mechanisms.
  • Significant obfuscation risk suggesting attempts to hide the true functionality of the code.
Per-check LLM notes
  • Network: The network call pattern suggests legitimate connection attempts, possibly for AWS service interaction.
  • Shell: The shell execution patterns indicate potential local SSH key management activities, which could be part of setting up an environment but may also signify unauthorized access mechanisms.
  • Obfuscation: The code uses random number generation and lambda functions to potentially hide logic, which may indicate an attempt to obfuscate the code's functionality.
  • Credentials: The use of os.environ.get('AWS_PROFILE') suggests that the package might be accessing environment variables for AWS credentials, which could pose a risk if not handled securely.
  • Metadata: The author has only one package, which might indicate a new or less active account, but there are no other red flags.

📦 Package Quality Overall: Medium (5.2/10)

✦ High Test Suite 9.0

Test suite present — 18 test file(s) found

  • Test runner config found: conftest.py
  • 18 test file(s) detected (e.g. conftest.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (28972 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

  • 152 type-annotated function signatures detected in source
◈ Medium Multiple Contributors 5.0

Limited contributor diversity

  • 1 unique contributor(s) across 47 commits in promptromp/aws-bootstrap-g4dn
  • Single author but highly active (47 commits)

🔬 Heuristic Checks

Outbound Network Calls score 1.5

Found 1 network call pattern(s)

  • try: sock = socket.create_connection((host, port), timeout=5) sock.close() ex
Code Obfuscation score 4.0

Found 2 obfuscation pattern(s)

  • next(ticks), rng=__import__("random").Random(0), ) assert waits == [(("us-west-2",),
  • next(ticks), rng=__import__("random").Random(0), ) assert slept, "expected at least o
Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • e .pub only. result = subprocess.run( ["ssh-keygen", "-y", "-f", str(priv)],
  • lt.stdout) return subprocess.run( ["ssh-keygen", "-t", "ed25519", "-N", "", "-f", str
  • ", ] result = subprocess.run(cmd, capture_output=True, text=True) if result.retur
  • nts.txt...") req_result = subprocess.run( ["scp", *ssh_opts, *scp_port_opts, str(requirements
  • rk.py...") bench_result = subprocess.run( ["scp", *ssh_opts, *scp_port_opts, str(benchmark_pa
  • st.ipynb...") nb_result = subprocess.run( ["scp", *ssh_opts, *scp_port_opts, str(notebook_pat
Credential Harvesting score 2.5

Found 1 credential access pattern(s)

  • field(default_factory=lambda: os.environ.get("AWS_PROFILE")) ssh_user: str = "ubuntu" tag_value: str =
Typosquatting

No typosquatting candidates detected

Registered Email Domain

No author email provided

Suspicious Page Links

All external links appear legitimate

Git Repository History

Repository promptromp/aws-bootstrap-g4dn appears legitimate

Maintainer History score 2.0

1 maintainer concern(s) found

  • Author "Adam Ever-Hadani" 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 aws-bootstrap-g4dn
Create a Python-based utility called 'RemoteDevBootstrapper' that leverages the 'aws-bootstrap-g4dn' package to streamline the process of setting up and managing hybrid local-remote development environments on AWS EC2 G4DN instances. This tool should enable developers to easily spin up pre-configured GPU-enabled EC2 instances from their local machines, allowing them to seamlessly switch between local and remote development contexts without needing to manually configure each environment. Here are the key requirements and features for your application:

1. **Instance Management**: Implement functionalities to launch, terminate, and manage multiple EC2 G4DN instances. Use 'aws-bootstrap-g4dn' to ensure these instances are pre-configured with necessary software and tools for GPU-accelerated development.
2. **SSH Tunneling**: Integrate SSH tunneling capabilities so that users can securely connect to their remote instances from their local machines. Ensure that the setup process is user-friendly and secure.
3. **Local-Remote Sync**: Develop a feature that allows real-time synchronization of files between the local machine and the remote instance. This will facilitate smooth switching between local and remote environments without losing work progress.
4. **Customizable Configurations**: Allow users to customize the configuration of their EC2 instances according to their specific needs, such as choosing different AMIs, specifying instance types, or installing additional software packages.
5. **User Interface**: Design a simple command-line interface (CLI) that guides users through the setup process and provides easy access to all functionalities. Additionally, consider integrating a basic web interface for advanced users who prefer GUIs over CLIs.
6. **Security Measures**: Incorporate robust security measures, including but not limited to, encrypted connections, two-factor authentication for accessing remote instances, and automatic session timeouts.
7. **Logging and Monitoring**: Include logging and monitoring features that allow users to track the status of their instances, view logs, and receive alerts about potential issues or maintenance needs.

Your task is to design and implement the 'RemoteDevBootstrapper' utility, ensuring it makes effective use of the 'aws-bootstrap-g4dn' package's capabilities while providing a seamless experience for developers looking to leverage cloud resources for their hybrid development workflows.

💬 Discussion Feed

Leave a comment

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