aws-sam-translator

v1.110.0 safe
3.0
Low Risk

AWS SAM Translator is a library that transform SAM templates into AWS CloudFormation templates

🤖 AI Analysis

Final verdict: SAFE

The package exhibits low risk across multiple dimensions including network, shell execution, and obfuscation. The metadata risk is slightly elevated due to the author's limited package history, but there are no indications of malicious intent.

  • Low risk scores across all major categories.
  • Metadata risk is moderately elevated but lacks specific red flags.
Per-check LLM notes
  • Network: No network calls detected, which is normal if the package does not require internet access.
  • Shell: No shell execution patterns detected, indicating no unexpected system command executions.
  • Obfuscation: No obfuscation patterns detected, indicating low risk.
  • Credentials: No credential harvesting patterns detected, indicating low risk.
  • Metadata: The author has only one package, suggesting it might be a new or less active account, but no other suspicious indicators are present.

📦 Package Quality Overall: Medium (5.0/10)

○ Low Test Suite 1.0

No test suite detected

  • No test files or test-runner configuration detected
◈ Medium Documentation 5.0

Some documentation present

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

  • 257 type-annotated function signatures detected in source
✦ High Multiple Contributors 10.0

Active multi-contributor project

  • 23 unique contributor(s) across 100 commits in awslabs/serverless-application-model
  • Active community — 5 or more distinct contributors

🔬 Heuristic Checks

Outbound Network Calls

No suspicious network call patterns found

Code Obfuscation

No obfuscation patterns detected

Shell / Subprocess Execution

No shell execution patterns detected

Credential Harvesting

No credential harvesting patterns detected

Typosquatting

No typosquatting candidates detected

Registered Email Domain

Email domain looks legitimate: amazon.com

Suspicious Page Links

All external links appear legitimate

Git Repository History

Repository awslabs/serverless-application-model appears legitimate

Maintainer History score 2.0

1 maintainer concern(s) found

  • Author "Amazon Web Services" 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-sam-translator
Your task is to develop a Python-based utility named 'SAMtoCF' which converts AWS Serverless Application Model (SAM) templates into AWS CloudFormation templates using the 'aws-sam-translator' package. This tool will serve as a bridge between SAM and CloudFormation, allowing developers to leverage the benefits of both models without manually converting templates.

Step 1: Setup
- Install the required packages including 'aws-sam-translator' and any other necessary dependencies such as 'boto3' for interacting with AWS services.

Step 2: Design the Interface
- Create a simple command-line interface (CLI) where users can input the path to their SAM template file.
- Implement options for outputting the converted CloudFormation template to a specified file or to standard output.

Step 3: Core Functionality
- Utilize the 'aws-sam-translator' package to parse the SAM template provided by the user.
- Transform the parsed SAM template into a CloudFormation template format.
- Handle exceptions and errors gracefully, providing meaningful feedback to the user.

Suggested Features:
- Support for multiple SAM template versions.
- Option to validate the SAM template before conversion using AWS SAM CLI.
- Ability to include comments in the output CloudFormation template that map back to the original SAM template elements.
- Provide a summary of changes made during the translation process.
- Include unit tests to ensure the correctness of the transformation logic.

This project aims to streamline the development process for serverless applications by reducing the manual effort needed to convert between SAM and CloudFormation templates.

💬 Discussion Feed

Leave a comment

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