Wednesday, October 29, 2025

Amazon Macie | Overview.

Amazon Macie - Overview.

Scope:

  • Intro,
  • Core Capabilities,
  • Management and Automation,
  • Pricing and Availability,
  • Architecture Flow,
  • Architecture Flow (Data Sources),
  • Architecture Flow (Discovery & Classification Engine),
  • Architecture Flow (Findings & Evaluation),
  • Architecture Flow (Integrations & Automation),
  • Architecture Flow (Data Security Lifecycle),
  • Architecture Flow (Security & Compliance),
  • Visual Architecture Layout.

Intro:

    • Amazon Macie is a fully managed data security and privacy service from Amazon Web Services (AWS).
    • Amazon Macie uses machine learning (ML) and pattern matching to:
      • Discover, 
      • Classify,  
      • Protect sensitive data in Amazon S3.
Core Capabilities
    • Sensitive Data Discovery: Automatically identifies sensitive information such as:
      • Personally identifiable information (PII), 
      • Financial records (e.g., credit card numbers), 
      • Intellectual property using machine learning.
    • Automated S3 Inventory: Continually evaluates twtech S3 bucket inventory to:
      • Monitor security 
      • Access controls,
      • Identifying risks like unencrypted 
      • Publicly accessible buckets.
    • Classification & Risk Visibility: Assigns business value to data items and provides an interactive data map to visualize where sensitive data resides across twtech AWS environment.
    • Custom Identifiers: Allows users to define custom data types using regular expressions that detect patterns specific to their business, such as internal employee ID formats.
Management & Automation
    • Integration: Findings are sent to Amazon EventBridge and can be published to AWS Security Hub to trigger automated remediation workflows.
    • Discovery Jobs: twtech-admin (Users) can run:
      • One-time, 
      • Daily, 
      • Weekly, 
      • Monthly discovery jobs that scan all or a subset of objects in the S3 buckets.
    • Multi-Account Support: Supports centralized monitoring across multiple AWS accounts through integration with AWS Organizations.
    • Allow Lists: Enables users to specify text or patterns like sample test data, that Macie would ignore during scans process to reduce false positives.
Pricing & Availability
  • According to AWS documentation , Macie pricing is based on three main dimensions:
    • S3 Bucket Assessment: Charged per bucket per month (e.g., $0.10) to monitor encryption and public status after a 30-day free trial.
    • Automated Discovery: Charged based on the number of objects evaluated for sampling (e.g., $0.01 per 100,000 objects).
    • Sensitive Data Discovery: Charged per GB of data actually scanned, with volume discounts starting after the first 50 TB (e.g., $1.00 per GB for the first 50 TB, then dropping to $0.50 per GB).
    • Free Trial: New users can benefit from a 30-day free trial for automated sensitive data discovery and bucket evaluation.

The concept of Amazon Macie (Deep Dive)

    • Amazon Macie is a fully managed data security and privacy service.
    • Amazon Macie uses machine learning (ML) and pattern matching to discover and protect sensitive data in Amazon S3.
    • Amazon Macie helps twtech to:
      • Identify personally identifiable information (PII)
      • Financial data
      • Credentials,
      • Custom-sensitive data types, for automated compliance and security workflows.

 Architecture Flow

1. Architecture Flow (Data Sources)

  • Macie primarily operates on Amazon S3 buckets, continuously or on-demand analyzing:
    • S3 objects and metadata
    • Bucket-level configurations (e.g., public access, encryption)
    • Object contents (text, structured/unstructured data)

Additional input signals include:

    • AWS Organizations (for multi-account management)
    • AWS Config and CloudTrail (context for resource inventory and activity)

2. Architecture Flow (Discovery & Classification Engine)

  • At the heart of Macie is the Discovery Engine that uses:
    • Machine Learning Models to classify sensitive data (e.g., names, addresses, credit card numbers)
    • Pattern Matching via predefined and custom data identifiers
    • Sampling and content analysis for large datasets

Steps:

    1. Inventory Discovery – Scans S3 buckets to map data assets.
    2. Classification Jobs – Evaluates object contents to detect sensitive data.
    3. ML-based Categorization – Labels files with detected data types (PII, credentials, etc.).
    4. Risk Scoring – Generates severity based on exposure (public, shared, unencrypted).

3. Architecture Flow (Findings & Evaluation)

  • Results are generated as Macie Findings, categorized into:
    • Policy Findings – Misconfigurations (e.g., publicly accessible S3 buckets).
    • Sensitive Data Findings – Actual detection of sensitive data (e.g., PII in objects).

Each finding includes:

    • Bucket/object details
    • Detected data types and count
    • Sensitivity score
    • Exposure level (public/private)

4. Architecture Flow (Integrations & Automation)

  • Macie finds integrate natively with AWS services for remediation and alerting:

Integration

Purpose

Amazon EventBridge

Triggers automated workflows (e.g., Lambda remediation, SNS alerts).

AWS Security Hub

Centralized view of findings with other AWS security tools.

AWS Organizations

Centralized Macie management across accounts.

AWS CloudWatch

Monitors classification job metrics and performance.

AWS Lambda / Step Functions

Custom remediation workflows (e.g., encrypt or quarantine sensitive data).

5. Architecture Flow (Data Security Lifecycle)

  • Data flow in Macie aligns with a continuous data protection cycle:

    1. Discover – Identify where data resides in S3.
    2. Classify – Detect and label sensitive data.
    3. Evaluate – Assess configuration risks and data exposure.
    4. Act – Trigger alerts and automate remediation.
    5. Monitor – Continuously evaluate new or modified objects.

6. Architecture Flow (Security & Compliance)

  • Macie supports multiple compliance frameworks:
    • GDPR, HIPAA, PCI-DSS, ISO 27001
    • Encryption via AWS KMS
    • Access control via IAM policies

 Visual Architecture Flow (Layout)

S3 Data Sources Discovery & Classification Engine Findings Integrations








Amazon Inspector (What It Actually Evaluates) | Overview.

Amazon Inspector (What It Actually Evaluates) - Overview.

Scope:

  • The concept of What Amazon Inspector Actually Evaluates,
  •  Core Evaluation Categories,
  • Common Vulnerabilities & Exposures (CVEs) what Amazon Inspector evaluates,
  • Evaluation Workflow,
  • Network Exposure Analysis (unintended network exposure),
  • Sample exposure finding,
  • Package & Dependency Scanning (Deep Software inventory analysis),
  • Lambda Function Scanning (evaluates Lambda functions),
  • Resource Discovery Evaluation Workflow,
  • Assessment Evaluation Workflow,
  • Finding Generation Evaluation Workflow,
  • Integration Evaluation Workflow,
  • Architecture Layers (Visual Breakdown),
  • Table for Layers, Description, & Samples,
  • Key Metrics & Prioritization of Inspector uses,
  • Integration with AWS Ecosystem & Purposes,
  • Sample Inspector Evaluation Flow,
  • Summary Evaluation Table (Area, Purposes Resources covered).

The concept of What Amazon Inspector Actually Evaluates,

    • Amazon Inspector is an automated vulnerability management service. 
    • Amazon Inspector is a service continuously:
      • scans AWS workloads for software vulnerabilities (CVEs)
      • And unintended network exposure.
  • Amazon Inspector primarily evaluates:
    • EC2 instances
    • Amazon ECR container images
    • Lambda functions with dependencie
  • Amazon Inspector helps the security teams to maintain compliance and security posture by identifying vulnerabilities before exploitation.

 Core Evaluation Categories

1.  Common Vulnerabilities & Exposures (CVEs) what Amazon Inspector evaluates:

    • Software packages and OS libraries for Common Vulnerabilities and Exposures (CVEs).
    • Vulnerability data sourced from:
      • NVD (National Vulnerability Database).
      • Vendor advisories (e.g., Ubuntu, Red Hat, Amazon Linux Security Bulletins).
      • AWS internal security intelligence.

Each finding includes:

    • CVE ID.
    • CVSS base score.
    • EPSS (Exploit Prediction Scoring System).
    • Remediation guidance (e.g., patch versions).

Targets

    • EC2 instances using SSM Agent.
    • ECR container images at build, push, or on-demand scan.

2. Network Exposure Analysis (unintended network exposure) by analyzing:

    • Security group configurations.
    • Network ACLs.
    • Publicly accessible ports or services.
    • Reachability to the Internet or VPC peers.

Targets

    • EC2 instances.
    • Lambda functions with public endpoints.

 Sample exposure finding:

“EC2 instance i-0ab123xxxxx exposes port 22 to the internet (0.0.0.0/0).”

3. Package & Dependency Scanning (Deep Software inventory analysis) to detect:

    • Vulnerable libraries (e.g., Log4j, OpenSSL).
    • OS-level packages.
    • Container dependencies from Dockerfiles or layers.

Targets

    • ECR images.
    • Lambda functions (Python, Node.js, Java, etc.).

4. Lambda Function Scanning (evaluates Lambda functions) for:

    • Software vulnerabilities in dependencies (CVEs).
    • Runtime environment vulnerabilities.
    • Package metadata.
    • Public accessibility (network exposure).

Scans occur:

    • On deployment (new versions).
    • On dependency updates.
    • On-demand or continuous mode.

 Evaluation Workflow

 1.  Resource Discovery Evaluation Workflow 

  • Inspector auto-discovers resources using AWS Organizations and Resource Tagging:
    • EC2 instances via Systems Manager Agent.
    • ECR repositories.
    • Lambda functions and layers.

 2. Assessment Evaluation Workflow

  • Inspector performs continuous, agent-based or agentless scans:
    • Uses Inspector Assessment Targets and Assessment Templates.
    • Collects software inventory and network reachability data.

 3. Finding Generation Evaluation Workflow 

  • Inspector produces detailed findings including:
    • Vulnerability ID and severity (Critical/High/Medium/Low).
    • CVSS score and exploitability.
    • Impacted resource ID.
    • Recommended remediation.

4. Integration Evaluation Workflow

Findings are automatically integrated with:

    • AWS Security Hub.
    • AWS Organizations (multi-account).
    • Amazon EventBridge
    • AWS Systems Manager Patch Manager.

 Architecture Layers (Visual Breakdown).

Data Sources  Detection Engine  Findings & Integrations.

Table for Layers, Description, & Samples

Layer

Description

Samples

Data Sources.

Software inventory, network configs, CVE databases.

SSM Agent, ECR API, Lambda metadata

Detection Engine.

Analyzes resources for vulnerabilities and exposures.

CVE scanner, network reachability analysis

Findings & Integrations.

Outputs to AWS tools for visibility and action.

Security Hub, EventBridge, SNS, Systems Manager


Architecture

Key Metrics & Prioritization of Inspector uses:

    • CVSS v3 base score.
    • EPSS (Exploit Prediction Scoring System).
    • AWS-specific context (e.g., exposure level, resource importance).
    • Aggregation by resource and account.

Sample:

    • A critical CVE with active exploit (EPSS > 0.9) on a public EC2 instance is prioritized over a low-severity, internal vulnerability.

 Integration with AWS Ecosystem & Purposes

Integration

Purpose

Security Hub.

Centralized visibility of Inspector findings

EventBridge.

Automated remediation workflows

Systems Manager Patch Manager.

Patching vulnerable instances

AWS Organizations.

Multi-account vulnerability management

AWS Config.

Compliance checks tied to configuration rules

 Sample Inspector Evaluation Flow

    • EC2 instance launched,
    • SSM Agent collects OS + package info,
    • Inspector compares software inventory against CVE databases,
    • Finds CVE-2024-XXXX affecting OpenSSL ( a free Open-Source Software liblrary used for secure communication over computer networks. 
      • OpenSSL is a powerful cryptographic toolkit that implements:
        • The Secure Sockets Layer (SSL) 
        • Transport Layer Security (TLS) protocols, with other cryptographic algorithms)
    • Checks if the instance is publicly reachable
    • Generates finding Publishes to Security Hub and EventBridge
    • Triggered Lambda workflow patches instance automatically

 Summary  Evaluation Table (Area, Purposes & Resources covered)

Evaluation Area

Purpose

Resources Covered

CVE Scanning.

Detect known vulnerabilities.

EC2, ECR, Lambda

Network Exposure.

Identify publicly accessible endpoints.

EC2, Lambda

Package & Dependency Analysis.

Detect library-level risks.

ECR, Lambda

Software Inventory.

Maintain asset visibility.

EC2

Integration Findings.

Centralize results for remediation.

Security Hub, EventBridge





Databases Explained & Use Cases with (Flash Card) | Overview.

Databases Explained  & Use Cases ( Flash Cards)   - Overview. A database is a structured collection of digital information designed f...