Chuyển đến nội dung
Skillpedia
Agent35k · #7797

detecting-aws-cloudtrail-anomalies

Skill này làm gì

Công cụ này giúp tìm các hoạt động lạ trong nhật ký gọi API của tài khoản AWS. Nó tìm các mẫu bất thường có thể cho thấy thông tin xác thực của bạn đã bị lộ hoặc có người truy cập tài nguyên mà không được phép.

Khi nào nên dùng

  • ✓Khi bạn nghi ngờ thông tin xác thực AWS đã bị đánh cắp.
  • ✓Để điều tra truy cập trái phép vào tài nguyên AWS.
  • ✓Khi xây dựng hệ thống cảnh báo cho các hoạt động bảo mật AWS.

Liên kết skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-aws-cloudtrail-anomalies/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-aws-cloudtrail-anomalies/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tìm hoạt động đáng ngờ trong nhật ký AWS trong 24 giờ qua.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ trước hết thu thập mọi lệnh gọi API AWS gần đây. Sau đó, nó học hành vi bình thường bằng cách quan sát ai làm gì, từ đâu và với tần suất nào. Cuối cùng, nó so sánh hoạt động hiện tại với hành vi bình thường để tìm và báo cáo những điều bất thường.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Detecting AWS CloudTrail Anomalies

Overview

AWS CloudTrail records API calls across AWS services. This skill covers querying CloudTrail events with boto3's lookup_events API, building statistical baselines of normal API activity, detecting anomalies such as unusual event sources, geographic anomalies, high-frequency API calls, and first-time API usage patterns that indicate compromised credentials or insider threats.

When to Use

  • When investigating security incidents that require detecting aws cloudtrail anomalies
  • When building detection rules or threat hunting queries for this domain
  • When SOC analysts need structured procedures for this analysis type
  • When validating security monitoring coverage for related attack techniques

Prerequisites

  • Python 3.9+ with boto3 library
  • AWS credentials with CloudTrail read permissions (cloudtrail:LookupEvents)
  • Understanding of AWS IAM and common API patterns
  • CloudTrail enabled in target AWS account (management events at minimum)

Steps

Step 1: Query CloudTrail Events

Use boto3 CloudTrail client's lookup_events to retrieve recent API activity with pagination.

Step 2: Build Activity Baseline

Aggregate events by user, source IP, event source, and event name to establish normal behavior patterns.

Step 3: Detect Anomalies

Flag unusual patterns: new event sources per user, first-time API calls, geographic IP changes, high error rates, and sensitive API usage (IAM, KMS, S3 policy changes).

Step 4: Generate Detection Report

Produce a JSON report with anomaly scores, top suspicious users, and recommended investigation actions.

Expected Output

JSON report with event statistics, baseline deviations, anomalous users/IPs, sensitive API calls, and error rate analysis.

Câu hỏi thường gặp

“API call” trong AWS là gì?

Đây là các lệnh bạn hoặc dịch vụ khác gửi để tương tác với dịch vụ AWS, như tạo máy chủ hoặc lưu tệp.

“Baseline” nghĩa là gì?

Baseline là bản ghi về hành vi bình thường. Nó giống như hồ sơ về những gì thông thường để có thể nhận ra điều không thông thường.

Công cụ có thể phát hiện những vấn đề nào?

Nó có thể phát hiện việc dùng thông tin xác thực bị đánh cắp, nỗ lực giành nhiều quyền hơn bình thường (leo thang đặc quyền) và truy cập tài nguyên trái phép.

Chi tiết

Mô tả gốc của tác giả

Detect unusual API call patterns in AWS CloudTrail logs using boto3, statistical baselining, and behavioral analysis to identify credential compromise, privilege escalation, and unauthorized resource access.

repo: mukul975/Anthropic-Cybersecurity-Skills

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#7797
Giấy phép
Apache-2.0
Cập nhật
31/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự