![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@richkang/security-findings-exporter-cdk-construct
Advanced tools
Lambda function that reports Security Findings
The SecurityFindingsExporterCdkConstruct
is an AWS CDK construct that automates the retrieval, processing, and export of security findings from AWS Security Hub. It includes a Lambda function and all the necessary infrastructure to notify users of critical security vulnerabilities, such as those detected by Amazon Inspector, and export these findings to external systems like Jira.
The construct simplifies the process of managing security findings in AWS environments, allowing users to focus on remediating issues rather than managing complex infrastructure.
From "NEW":
To "NOTIFIED":
The architecture of the SecurityFindingsExporterCdkConstruct
is designed to be fully serverless and includes:
Before using this CDK construct, you need to ensure the following:
AWS CDK Installed: You need to have the AWS CDK installed. You can install it with the following command:
npm install -g aws-cdk
Jira Credentials: Ensure that you have the following Jira credentials configured as environment variables:
Jira_basicAuth_email
: Your Jira email for basic authentication.Jira_basicAuth_apiToken
: Your Jira API token.Jira_serverUrl
: The URL of your Jira server.Jira_projectKey
: The key of your Jira project.AWS Account: Ensure that your AWS CLI is configured with the necessary permissions to deploy CDK resources.
git clone https://github.com/kangks/security-findings-exporter-cdk-construct.git
cd security-findings-exporter-cdk-construct
Navigate to the project directory and install the necessary dependencies:
npm install
npm i @richkang/security-findings-exporter-cdk-construct
To deploy the stack to your AWS account, run the following command:
cdk deploy
This will deploy the SecurityFindingsExporterCdkConstruct
and provision all necessary AWS resources, including the Lambda function and IAM roles.
The Lambda function, written in Python, is responsible for processing security findings and exporting them to Jira. You can find the Lambda function code in the lambda/
directory. Feel free to modify the code to suit your specific needs.
After deployment, configure your environment variables for the Lambda function. These include:
SECURITY_HUB_REGION
REGIONS
ACCOUNTS
Jira_basicAuth_email
Jira_basicAuth_apiToken
Jira_serverUrl
Jira_projectKey
You can set these either in the AWS Management Console under the Lambda function's configuration or directly in your CDK code.
Here is an example of how to instantiate the SecurityFindingsExporterCdkConstruct
in your CDK stack:
import { SecurityFindingsExporterCdkConstruct } from '@richkang/security-findings-exporter-cdk-construct';
import * as cdk from 'aws-cdk-lib';
class SecurityStack extends cdk.Stack {
constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
super(scope, id, props);
new SecurityFindingsExporterCdkConstruct(this, 'SecurityFindingsExporter', {
securityFindingsRegions: "<regions of the findings to be retrieved, separated by commas>",
securityFindingsAccounts: "<AWS accounts of the findings to be retrieved, separated by commas>",
jiraBasicAuthEmail: "<JIRA user email address>",
jiraBasicAuthApiToken: '<JIRA Authentication API Token>',
jiraServerUrl: "<JIRA Cloud URL, in the format of https://<subscriber>.atlassian.net>",
jiraProjectKey: "<JIRA project key>",
paginatorMaxItems: <Optional items per run>,
});
}
}
const app = new cdk.App();
new SecurityStack(app, 'SecurityStack');
You can run tests using Jest to validate the creation of resources:
npm run test
Logs for the Lambda function can be viewed in AWS CloudWatch. Any issues encountered during the processing of security findings or the creation of Jira issues will be logged there.
Contributions are welcome! Please feel free to submit a pull request or open an issue to suggest improvements.
main
.This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Lambda function that reports Security Findings
We found that @richkang/security-findings-exporter-cdk-construct demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.