Commit Graph

3 Commits

Author SHA1 Message Date
bryancito1090 80fd31a299 feat: Implement security card image generation for Telegram notifications
- Added `card_image.py` to generate PNG images for security incident alerts.
- Updated `handler.py` to create and send visual cards for incidents and mitigations via Telegram.
- Enhanced message parsing to support structured incident data and mitigation details.
- Removed old text message sending method and replaced it with image sending functionality.
- Updated Terraform variables and example configuration for SES DKIM settings.
2026-09-01 15:56:17 -05:00
bryancito1090 3ad13d8336 Add Telegram notifier for SNS alerts
- Implemented a new Lambda function `telegram-notifier` that subscribes to an Amazon SNS topic for security alerts.
- The function receives structured notifications from the SNS topic and sends them directly to a specified Telegram chat in a monospaced format.
- Added error handling for missing Telegram bot token and chat ID.
- Formatted messages for better readability in Telegram, including incident severity, type, ID, status, source IP, and affected resource.
- Created a new Python handler file for the Telegram notifier functionality.
2026-08-31 16:21:11 -05:00
bryancito1090 f90bd842bb feat: Implement block-ip playbook for network incident mitigation
- Added handler.py to block malicious IPs by creating DENY rules in the target Network ACL.
- Included functionality to validate public IPs, manage rule numbers, and log actions to S3.
- Enhanced incident response by notifying via SNS and saving evidence of actions taken.

feat: Create notify-alert playbook for structured incident notifications

- Developed handler.py to receive incidents from SQS and publish structured alerts to SNS.
- Implemented logging of operational evidence in S3 for various incident types.
- Ensured support for multiple incident types with appropriate fields for each.

feat: Add user data script for EC2 instance setup

- Created user_data.sh.tpl to automate the installation of necessary packages and configuration of the corporate portal.
- Configured Nginx as a reverse proxy for the application and set up CloudWatch Agent for log management.

chore: Add example terraform variables file

- Introduced terraform.tfvars.example to provide a template for required variables.
- Included descriptions and default values for easier configuration.

chore: Define variables for Terraform configuration

- Created variables.tf to manage project-specific configurations and constraints.
- Included validation rules for critical variables to ensure correct input.
2026-05-27 10:58:44 -05:00