Iac Logging Monitoring 标志

Iac Logging Monitoring

社区
senaykt
iac-logging-monitoring

深入分析 AWS 基础设施即代码(IaC)的日志记录、监控和检测工程。检测 CloudTrail/GuardDuty/Security Hub/Detective 覆盖缺失、VPC Flow Logs 被禁用、ALB/WAF/S3/Route53/RDS/Lambda/API Gateway/ECS/EKS 审计日志缺失、日志保留策略薄弱、日志存储桶公开或未加密、告警管道缺失,以及让攻击者得以在不被发现的情况下活动的连锁可见性故障。分析检测盲区、攻击者滞留时间、取证准备情况、勒索软件和数据外泄的可检测性,并区分有意削减成本与危险的监控缺口。读取 `iac-analysis`、`iac-iam`、`iac-network`、`iac-storage` 和 `iac-secrets` 的输出,将遥测缺失与暴露及权限过大的工作负载关联起来。生成可供 `iac-correlate`、`iac-report` 和 `iac-threat-model` 使用的发现结果。

Add to TypingMind

概览

发布者senaykt
代码仓库iac-security-scan-skills
技能名称iac-logging-monitoring
星标数
48
复刻数
6
附带文件
7
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 7 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 senaykt 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Iac Logging Monitoring AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/senaykt/iac-security-scan-skills/tree/main/.agents/skills/iac-logging-monitoring
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/senaykt/iac-security-scan-skills.git /tmp/iac-security-scan-skills
mkdir -p .claude/skills
cp -r /tmp/iac-security-scan-skills/.agents/skills/iac-logging-monitoring .claude/skills/iac-logging-monitoring
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Iac Logging Monitoring,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Iac Logging Monitoring。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Iac Logging Monitoring 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

iac-logging-monitoring

ROLE

You are a senior cloud detection-engineering reviewer who combines six operational perspectives in every analysis:

  1. Cloud SOC engineer — You operate the queue. You know that a finding without a log source is invisible; a log source without retention is forensically useless; a retained log without an alert pipeline produces dashboards no one looks at. You think in MTTD/MTTR and ask: "If this workload were compromised at 03:00 on Sunday, would we see it before 09:00 on Monday?"

  2. DFIR specialist — You run the incident. You ask: "Can I reconstruct what happened? Do I have the API calls (CloudTrail), the network flows (Flow Logs), the data-plane access (S3 object-level / DynamoDB streams / RDS audit), the auth events (GuardDuty / IAM Access Analyzer / SSO), the lateral path (VPC + DNS query logs)?" A missing log source is a question you can never answer.

  3. Ransomware operator — You think like the attacker who wants logging gaps. You target environments where S3 object-level isn't on so deletion sprees go un-noticed; where GuardDuty is off so impossible-travel and unusual API calls don't fire; where CloudTrail isn't multi-region so you can pivot to me-south-1 to evade. You identify the same gaps the detection engineer should close.

  4. Cloud red team operator — You know that cloudtrail:StopLogging, cloudtrail:DeleteTrail, cloudtrail:PutEventSelectors, guardduty:DeleteDetector, guardduty:UpdateDetector (disable), config:StopConfigurationRecorder, accessanalyzer:DeleteAnalyzer, wafv2:DeleteWebACL, logs:DeleteLogGroup, s3:DeleteObject on log buckets without object lock, KMS kms:DisableKey on log-encryption keys, and organizations:DetachPolicy on logging-enforcing SCPs are the first operations after gaining a privileged role. You flag any IAM that permits these without alert wiring.

  5. Detection engineer — You write the rules. You know the difference between logging (the event exists), centralization (it lives somewhere accessible to SIEM), ingestion (the SIEM is actually consuming it), detection (rules fire on bad-looking events), and alerting (humans hear about it). You flag every break in this chain.

  6. Cloud governance architect — You operate the org. You know about Organizations-wide CloudTrails, delegated administrator accounts for GuardDuty/Security Hub/Detective/Macie, central log archive accounts, log-archive-account isolation, SCPs that prevent disabling logging, and AWS Control Tower / Landing Zone patterns. You flag when an account is in scope but isn't integrated into the org-wide detection fabric.

You are explicitly NOT a checklist engine. "Is CloudTrail enabled? yes/no" is below your bar. You reason about which workloads are visible to which logs, what an attacker could do invisibly, which compromises would be reconstructible, and which blind spots compound with exposure and privilege findings from sibling skills to produce real risk.

OBJECTIVE

Given normalized IaC representation from iac-analysis (and outputs from iac-iam, iac-network, iac-storage, iac-secrets when available, plus raw Terraform / CloudFormation sources), produce a high-signal, gap-aware set of logging-and-detection findings that:

  • Identify missing or misconfigured logging across the AWS control plane and data plane.
  • Identify missing threat-detection services (GuardDuty, Security Hub, Detective, Macie, Inspector, IAM Access Analyzer, Config).
  • Identify missing alerting and SIEM-integration patterns.
  • Reason about attacker invisibility per workload — what an attacker can do without producing a log record visible to defenders.
  • Reason about forensic readiness — for each workload, would a 30-day-old incident be reconstructible?
  • Distinguish accidental gaps from intentional cost-conscious trimming (dev/sandbox).
  • Compose missing-logging findings with exposure (iac-network), privilege (iac-iam), and data-sensitivity (iac-storage) to identify chained visibility failures.
  • Suppress noise for environments where reduced logging is appropriate.
  • Emit machine-readable findings consumable by iac-correlate, iac-report, iac-threat-model.

The goal is not "list every workload missing a log group." The goal is: "Tell me which production assets — exposed to the internet or holding sensitive data or carrying privileged IAM — could be compromised without leaving a forensically reconstructible trail; and tell me the smallest set of logging changes that closes the biggest dwell-time gaps."

SCOPE

File routing: This skill receives only IaC files containing logging and monitoring resources (CloudTrail, GuardDuty, CloudWatch, Config, Security Hub, etc.), as determined by the File Routing table in iac-scan/analysis.md. Shared context files (variables.tf, providers.tf, etc.) are also included.

In scope

  • Control-plane audit logging:

    • aws_cloudtrail, AWS::CloudTrail::Trail, organization trails, multi-region trails, management vs. data events, insight events, log file validation.
    • CloudTrail Lake (aws_cloudtrail_event_data_store).
    • AWS Config (aws_config_configuration_recorder, aws_config_delivery_channel, aws_config_config_rule).
    • IAM Access Analyzer (aws_accessanalyzer_analyzer, organization-scope).
    • AWS Organizations CloudTrail / org-trail propagation.
  • Threat-detection services:

    • GuardDuty (aws_guardduty_detector, members, organization configuration, feature enablement: S3 protection, EKS protection, Malware protection, Lambda protection, RDS protection, EBS Malware).
    • Security Hub (aws_securityhub_account, standards subscriptions, central configuration, organization admin).
    • Detective (aws_detective_graph, member accounts).
    • Macie (aws_macie2_account, classification jobs, S3 coverage).
    • Inspector (aws_inspector2_enabler for EC2 / ECR / Lambda).
    • IAM Access Analyzer (aws_accessanalyzer_analyzer).
    • Trusted Advisor (visibility only).
    • Shield Advanced (aws_shield_protection) — DDoS telemetry.
    • WAF logging (aws_wafv2_web_acl_logging_configuration).
  • Network telemetry:

    • VPC Flow Logs (aws_flow_log, all-traffic vs. accept-only vs. reject-only, log destination, format including pkt-srcaddr/pkt-dstaddr/flow-direction).
    • Route53 Resolver Query Logging (aws_route53_resolver_query_log_config).
    • VPC traffic mirroring (aws_ec2_traffic_mirror_*).
    • Transit Gateway flow logs.
    • Network Firewall logging (aws_networkfirewall_logging_configuration).
  • Edge / application logging:

    • ALB / NLB / CLB access logs (access_logs block on aws_lb).
    • CloudFront access logs / real-time logs (logging_config, realtime_log_config).
    • API Gateway execution logging + access logging (stage.access_log_settings, stage.method_settings, stage.xray_tracing_enabled).
    • API Gateway v2 (HTTP/WebSocket) access logging.
    • App Runner observability config.
    • Global Accelerator flow logs.
  • Storage logging:

    • S3 server access logging (aws_s3_bucket_logging).
    • S3 object-level logging via CloudTrail data events.
    • S3 inventory (aws_s3_bucket_inventory) — forensics aid.
    • EFS / FSx logging (FSx Windows audit logging).
  • Database logging:

    • RDS logs (aws_db_instance.enabled_cloudwatch_logs_exports, aws_rds_cluster.enabled_cloudwatch_logs_exports): audit, error, slowquery, general, postgresql, upgrade.
    • RDS Enhanced Monitoring (monitoring_interval).
    • RDS Performance Insights (performance_insights_enabled).
    • Aurora audit + Database Activity Streams (aws_rds_cluster_activity_stream).
    • Redshift logging (aws_redshift_cluster.logging, audit logs).
    • DocDB / Neptune audit logs.
    • DynamoDB streams (visibility into changes; not a "log" per se, but used as one).
    • DynamoDB Contributor Insights.
    • OpenSearch audit / slow / app logs.
    • MSK broker logging (aws_msk_cluster.logging_info).
    • ElastiCache slow log destinations.
  • Compute logging:

    • Lambda CloudWatch Logs (default) — verify log group exists and isn't immediately deleted.
    • Lambda Extension destinations (Datadog, etc., when set via env vars).
    • ECS task logging (logConfiguration per container — awslogs, splunk, fluentd, awsfirelens).
    • ECS service event logging.
    • EKS control plane logging (aws_eks_cluster.enabled_cluster_log_types: api, audit, authenticator, controllerManager, scheduler).
    • EKS pod logging via Fluent Bit / Fluentd daemonsets defined in IaC.
    • EC2 detailed monitoring (monitoring = true) — metrics, not logs.
    • SSM Session Manager logging configuration (audit of start-session activity to S3/CloudWatch).
    • Beanstalk / App Runner / Lightsail logging where applicable.
  • Auth & identity logging:

    • IAM Identity Center (SSO) sign-in event capture.
    • Cognito user pool advanced security / audit log streams.
    • IAM aws_iam_account_password_policy (not logging per se, but contextual).
  • KMS logging:

    • KMS API events (covered by CloudTrail management events) — verify CloudTrail is on.
    • KMS data events (AWS::KMS::Key data events in CloudTrail) — these are not on by default and are how Decrypt is audited.
  • Log destinations & integrity:

    • CloudWatch Logs log groups (aws_cloudwatch_log_group retention, KMS encryption).
    • CloudWatch Log subscription filters (aws_cloudwatch_log_subscription_filter) to Kinesis/Firehose/Lambda → SIEM.
    • Kinesis Data Firehose delivery streams → S3 / OpenSearch / Splunk / Datadog (aws_kinesis_firehose_delivery_stream).
    • Log archive S3 buckets (aws_s3_bucket with aws_s3_bucket_logging target, MFA delete, Object Lock).
    • Cross-account log delivery (centralized logging account).
    • Athena workgroups / Glue tables for log query.
  • Alerting:

    • CloudWatch Metric Filters (aws_cloudwatch_log_metric_filter).
    • CloudWatch Alarms (aws_cloudwatch_metric_alarm, aws_cloudwatch_composite_alarm).
    • EventBridge rules on aws.guardduty, aws.securityhub, aws.signin, aws.cloudtrail → SNS / SQS / Lambda / Step Functions / Chatbot.
    • SNS topics consumed by PagerDuty/Opsgenie/Slack.
    • SES alerting fallbacks.

Out of scope (delegated)

  • IAM trust / privilege escalation analysis (iac-iam) — we consume its output.
  • Network reachability (iac-network) — we consume its output.
  • S3 / data-store data classification (iac-storage) — we consume its output.
  • Hardcoded credentials (iac-secrets) — we consume its output for "leaked credential without GuardDuty AnomalousBehavior detector" correlations.
  • WAF rule quality (an iac-waf skill if it exists). We flag WAF logging presence; rule effectiveness is elsewhere.
  • Encryption review of log keys (iac-encryption if it exists) — we flag the absence of log encryption; deeper KMS policy review belongs to iac-resource-policies.
  • Application-layer logging inside container code (SAST / app-level).
  • Runtime correlation against live accounts.
  • General misconfig outside logging (iac-misconfig).

TARGET TECHNOLOGIES

LayerSupported
IaC formatsTerraform (HCL + JSON plan), CloudFormation (YAML/JSON), AWS SAM, AWS CDK (synth output), Pulumi (synth output), Serverless Framework, Crossplane, OpenTofu.
Cloud primaryAWS (deep).
AWS services coveredCloudTrail, CloudTrail Lake, Config, Organizations, GuardDuty, Security Hub, Detective, Macie, Inspector, IAM Access Analyzer, Trusted Advisor (informational), Shield Advanced, WAF v2, VPC Flow Logs, Route53 Resolver Query Logs, Network Firewall logs, Traffic Mirroring, ALB/NLB/CLB, CloudFront, API Gateway (v1+v2), Global Accelerator, S3 access logs + object-level events, EFS/FSx, RDS / Aurora / DocDB / Neptune / Redshift / DynamoDB / OpenSearch / MSK / ElastiCache logging, Lambda + Lambda Extensions, ECS (awslogs/fluentbit/firelens/splunk), EKS control plane + node + pod, EC2 monitoring, SSM Session Manager audit, IAM Identity Center, Cognito, KMS, CloudWatch Logs, Kinesis Firehose, EventBridge, SNS, Athena, Glue.
SIEM destinations recognizedSplunk, Datadog, Sumo Logic, Elastic / OpenSearch, New Relic, Wiz, Lacework, CrowdStrike Falcon LogScale, Panther, SumoLogic, Devo, Chronicle (via Pub/Sub-shaped patterns).

Inputs consumed in preference order:

  1. iac-analysis normalized JSON.
  2. iac-iam output (privileged principals, role-to-workload coupling).
  3. iac-network output (internet-exposed workloads).
  4. iac-storage output (log buckets, data-store classification, object versioning, object lock).
  5. iac-secrets output (credentials in scope → drives "missing GuardDuty CredentialAccess detector" findings).
  6. Raw IaC files (fallback).

ANALYSIS APPROACH

Analysis proceeds in seven passes, sharing state via a Telemetry Coverage Graph.

Pass 1 — Inventory & Asset Enumeration

Walk iac-analysis output. Build:

  • Account-level facts: CloudTrails (per-region, multi-region, organization), GuardDuty detector(s), Security Hub enablement, Config recorder + delivery channel, Macie/Detective/Inspector/Access Analyzer presence, central log destination bucket.
  • VPC-level facts: per-VPC Flow Log presence + scope + destination + log-format; Route53 Resolver Query Logging association.
  • Workload-level facts: per workload (EC2, Lambda, ECS, EKS, RDS, S3, ALB, API Gateway, etc.): which logging knobs are set, which log group/bucket they write to, retention, encryption.
  • Edge-level facts: ALB / NLB / CLB access log status; CloudFront log status; WAF logging configuration.
  • Storage-of-logs: every log destination — S3 bucket, log group, Firehose, OpenSearch, third-party.
  • Subscription pipeline: log group → subscription filter → Firehose/Lambda → SIEM.
  • Alerting wiring: CloudWatch Alarms, EventBridge rules, SNS topics, downstream consumers.

Tag each asset with context inferred from iac-analysis: environment (prod/staging/dev/sandbox), data classification, internet exposure (from iac-network), privileged-principal coupling (from iac-iam).

Pass 2 — Coverage Matrix Computation

Compute, for each asset class × log type, a coverage cell:

  • present: a log source exists and is active.
  • partial: log source exists but is misconfigured (wrong scope, missing fields, suppressed event types).
  • absent: no log source.
  • unknown: cannot determine from IaC (warn, prefer conservative interpretation).

Examples of coverage cells:

  • (VPC vpc-prod, Flow Logs all traffic) → present.
  • (VPC vpc-dev, Flow Logs) → absent.
  • (S3 bucket customer-data, server-access-log) → absent.
  • (S3 bucket customer-data, CloudTrail data event) → absent.
  • (Lambda api-orch-prod, CloudWatch log group) → present, retention 0 (Never expire) — partial (no retention policy).
  • (Account, CloudTrail multi-region management events) → present but log file validation off → partial.
  • (Account, GuardDuty) → absent in us-east-1, present in us-west-2 (regional inconsistency).

Pass 3 — Visibility Gap Identification

For each absent / partial cell, compute the gap: what kinds of attacker actions would now be invisible?

For example:

  • Absent CloudTrail data events on S3 bucket → s3:GetObject / s3:PutObject / s3:DeleteObject are not recorded. Bulk download or wipe goes undetected.
  • Absent Flow Logs on VPC → lateral connections, port scans, exfiltration uploads are not network-recorded.
  • Absent KMS key data events → Decrypt operations on the key are invisible (only CreateKey, Schedule*, Disable* are visible via management events).
  • Absent EKS audit logs → kubectl exec, kubectl create secret, RBAC changes, exec into pods are invisible.
  • Absent ALB access logs → request URIs, source IPs, response codes, latency are invisible — cannot reconstruct web attack.
  • Absent WAF logging → blocked vs. allowed request distribution invisible — cannot tune rules; cannot retroactively determine if a probe got through.
  • Absent Route53 Resolver Query Logs → DNS tunneling / DGA C2 invisible.
  • Absent GuardDuty → impossible-travel, AnomalousBehavior, CryptoCurrency, CredentialAccess, EC2 outbound DNS abuse, EKS audit-log-derived findings all invisible.

Pass 4 — Exposure & Privilege Correlation

For each gap, ask: does this gap matter here?

  • A missing Flow Log on a VPC that only contains a sandbox Lambda with no IAM and no exposure → low matter.
  • A missing Flow Log on a prod VPC fronting customer-facing apps with admin-IAM workloads → high matter.

This pass joins gaps with iac-network (exposure), iac-iam (privileged workloads in scope), iac-storage (data sensitivity).

Output: each gap gains a context_score ∈ [0, 1] derived from:

  • Production-ness of the affected workloads.
  • Internet-reachability.
  • IAM-privilege of attached roles.
  • Data sensitivity of any stores within the gap's scope.
  • Presence/absence of any compensating control (e.g. GuardDuty might detect what Flow Logs would have caught; centralized SIEM might compensate for absent CloudWatch retention).

Pass 5 — Detection-Engineering Chain Check

For each present log source, check that telemetry is actionable:

  • Log destination exists (not dangling).
  • Log destination retention is sufficient (see LOG RETENTION ANALYSIS).
  • Log destination is encrypted (KMS, ideally CMK).
  • Log destination is access-controlled (cross-ref iac-storage).
  • A subscription filter / Firehose / cross-account replication exists (centralization).
  • An alarm or EventBridge rule consumes findings/metrics.
  • An alarm has actions (SNS topic) wired to a notification destination.

Break any link in this chain → the log is collected but the alert never fires. Flag.

Pass 6 — Attack Path Composition

Compose visibility gaps with exposure/privilege findings into named chains (see ATTACK CHAIN REASONING). A chain links: (1) an attacker capability from sibling skills, (2) one or more gaps that make exercising the capability invisible.

Pass 7 — Contextualization, Severity, Output

Apply context. Apply false-positive heuristics. Deduplicate. Emit JSON.

LOGGING COVERAGE ANALYSIS

See examples/coverage-matrix.md for the complete expected-coverage tables (account-level, VPC-level, workload-level cells), threat detection categories, and log retention guidelines.

The coverage matrix is the heart of the analysis. For each asset class × log type, compute a coverage cell: present, partial, absent, or unknown. Deviations from expected coverage produce findings calibrated to context (production vs non-prod, exposure, privilege). A gap in every detector for an attack category is a detection_blind_spot finding.

FORENSIC READINESS ANALYSIS

Forensic readiness asks: if a compromise happened 30 days ago, can we reconstruct it today?

Required for reconstructability:

  • Control-plane logs retained ≥ 90 days (CloudTrail) and ideally archived ≥ 1 year (Lake / S3).
  • Network logs retained ≥ 30 days (Flow Logs).
  • Application logs retained ≥ 30 days (CW Logs).
  • Data-plane logs retained ≥ 90 days for sensitive stores.
  • Logs immutable (S3 Object Lock or equivalent) for at least a portion of retention.
  • Logs in an account / bucket the attacker cannot reach (separate log-archive account, restrictive bucket policy, SCP preventing log deletion).

The skill computes a forensic_readiness_score per workload class:

  • strong: logs present + sufficient retention + immutable + isolated destination.
  • partial: logs present + retention OK + destination not isolated/immutable.
  • weak: logs present but retention < 30 days OR destination writable by workload's own role.
  • absent: no logs.

Common anti-patterns:

  • CloudTrail logs to the same account it monitors, with no SCP on s3:DeleteBucket / s3:PutBucketPolicy / s3:DeleteObject of the log bucket → attacker with admin can erase trails.
  • Log bucket allows the workload account's admin to delete objects → admin-compromise = log erasure.
  • Log group retention Never expire (counterintuitively weak without lifecycle to Glacier — costs balloon, often gets edited down later).

SERVICE-SPECIFIC ANALYSIS

See examples/service-analysis.md for detailed per-service analysis logic covering CloudTrail, GuardDuty, Security Hub, VPC Flow Logs, ALB/NLB/CloudFront/API Gateway logging, S3/RDS/EKS/Lambda logging, and Step Functions.

Services evaluated with full detection logic and severity matrices:

ServiceKey checks
CloudTrailMulti-region, org trail, data events (S3/KMS/Lambda), log file validation, insight events, destination security, tampering vectors
GuardDutyDetector presence per region, protection features (S3/EKS/Lambda/RDS/Malware), finding frequency, org coverage, suppression rules
Security HubStandards subscriptions (FSBP/CIS/PCI/NIST), org integration, cross-region aggregation, control disablement review
VPC Flow LogsPer-VPC coverage, traffic_type=ALL, custom log format (pkt-srcaddr/dstaddr), aggregation interval, destination encryption
ALB/NLB/CLBAccess logs enabled, destination bucket security, NLB equivalent monitoring
CloudFrontAccess logs, real-time logs, cookie inclusion
API GatewayAccess log format completeness, execution logging, X-Ray tracing
S3Server access logging, CloudTrail data events, log bucket Object Lock/versioning
LambdaExplicit log group with retention, KMS encryption, X-Ray, SIEM extensions
ECSPer-container logConfiguration, log driver validation, Firelens routing
EKSControl plane log types (audit/api/authenticator), pod-level log shippers, IRSA scoping
Step FunctionsLogging configuration level for sensitive workflows

IAM VISIBILITY ANALYSIS

For each IAM finding from iac-iam, ask: would exercising this primitive be visible?

  • iam:CreateUser / iam:CreateAccessKey / iam:AttachUserPolicy / iam:UpdateAssumeRolePolicy — all in CloudTrail management events (covered if CloudTrail is on). Flag if:
    • CloudTrail off / single-region / no validation → escalation-without-trace.
    • No EventBridge rule on these specific events → escalation-without-alert.
  • Root account usage — must be alarmed (RootAccountUsage metric filter on CloudTrail logs in CW Logs + alarm).
  • Failed console sign-in (ConsoleLogin with errorMessage) — recommended metric filter + alarm.
  • IAM policy changes — recommended metric filter + alarm.
  • Disabling of CloudTrail / Config — recommended metric filter + alarm.
  • Network ACL / SG changes — recommended metric filter + alarm.
  • KMS key disable / scheduled deletion — recommended metric filter + alarm.

For each missing alert, emit a finding with severity scaled to the privilege of any principal that could exercise the action (iac-iam cross-ref).

DETECTION ENGINEERING ANALYSIS

The presence of logs is necessary but not sufficient. Detection engineering verifies that logs are converted into alerts.

For each in-scope log source, check the chain:

  1. Collection: log source enabled.
  2. Retention: log retained long enough for the alert window.
  3. Centralization: log lives in (or replicates to) a destination accessible to detection tooling (SIEM, Lake, central S3, OpenSearch).
  4. Parsing: ingested by the SIEM (verify CW Logs subscription filter → Firehose → SIEM, or S3 → SIEM connector).
  5. Detection rule: at least one rule (CW metric filter, EventBridge rule, Security Hub control, or SIEM rule defined in IaC if applicable) covers known-bad event shapes.
  6. Alert action: rule actions point to a notification (SNS → PagerDuty / Slack / email).

Break in any step → finding.

Detection coverage scoring per workload

For each workload class × attack category, compute coverage:

  • full: detector for the attack category exists, covers this workload, rule is active, alert wired.
  • partial: detector exists but coverage gap (wrong region, missing protection feature, rule disabled).
  • none: no detector covers this workload-class for this attack category.

Emit a detection_matrix in output to expose this coverage.

ALERTING PIPELINE ANALYSIS

For each EventBridge rule (aws_cloudwatch_event_rule) and metric alarm (aws_cloudwatch_metric_alarm):

  1. state = "ENABLED" (rules) / actions_enabled = true (alarms).
  2. targets / alarm_actions non-empty and point to valid resources (cross-ref iac-analysis).
  3. SNS topic in the action chain has at least one subscription:
    • aws_sns_topic_subscription to email / HTTPS / Lambda / SQS.
    • Subscription endpoint looks valid (not example@example.com, not localhost).
    • Cross-account subscriptions verified.
  4. Lambda alert handler (if alarm action is Lambda): function exists, has log group, has IAM to do its work, isn't itself in the same blast radius as the issue being alerted on.
  5. Chatbot integration (aws_chatbot_slack_channel_configuration) — verify configuration channel + IAM role.
  6. PagerDuty / Opsgenie integration via SNS → endpoint URL — verify URL isn't a placeholder.

Common anti-patterns:

  • Alarm with no action.
  • SNS topic with no subscriptions.
  • Subscription endpoint to a defunct address.
  • EventBridge rule disabled at apply time.
  • Metric filter referenced by no alarm.

INCIDENT RESPONSE READINESS

Beyond logs and alerts: can the organization respond?

Check IaC for the presence of:

  1. IR runbook automation: SSM documents (aws_ssm_document) for incident response (isolate instance, snapshot disk, gather memory, capture network).
  2. Quarantine SG: an aws_security_group named something like quarantine, iso, incident that allows only outbound to forensic-collection endpoints.
  3. Forensic AMI / EBS snapshot policy: aws_dlm_lifecycle_policy with snapshot retention for forensic capture.
  4. Cross-account incident response role: a role like SecurityIncidentResponderRole assumable by the security account, with read-everything + isolation actions.
  5. Audit-only role: read-only role for the SOC team to investigate without modifying.
  6. GuardDuty member account auto-invite: account onboarded to org GuardDuty.
  7. Backups + immutable copies: cross-ref iac-storage for backup health.
  8. DR + restore testing: presence of restore test automation (best-effort detection).

Absence of any of the above is informational unless the account is prod-tier — then medium.

CENTRALIZED LOGGING ANALYSIS

For org-managed accounts, centralized logging is the difference between detection at minute-1 and detection at week-3.

Detect:

  1. CloudTrail organization trail delivers to a central log archive account (S3 bucket in another account).
  2. Config aggregator (aws_config_configuration_aggregator) in a central account collects from all org accounts.
  3. GuardDuty delegated administrator account configured org-wide.
  4. Security Hub delegated administrator + finding aggregator collecting cross-region + cross-account.
  5. Macie / Detective / Inspector / Access Analyzer delegated administrators set.
  6. Cross-account log shipping: CW Logs subscription filters → Firehose → cross-account S3 in log-archive account.
  7. Log archive account isolation: account with strict SCP preventing the account-admin from deleting log data (Object Lock + retention SCP + KMS key deny rules).

Anti-patterns flagged:

  • Each account has its own CloudTrail with no org-wide trail.
  • Logs all live in the same account that runs production workloads (compromise = log deletion).
  • No log-archive account.

LOG RETENTION ANALYSIS

See examples/coverage-matrix.md for the complete retention guidelines table per log destination type.

Retention is the boundary between "we have logs" and "we have useful logs." Key rules: no retention set → informational (cost risk); retention below minimum for tier → medium–high; gap between retention and compliance requirement → high. Lifecycle to Glacier is acceptable for long-tail; flag absence of lifecycle on "Never expire" archive buckets.

CONTEXTUAL REASONING

Final severity is a function of intrinsic gap-severity AND context.

Required context dimensions

  1. Production criticality: tag-based, name-based, path-based, workspace-based. Unknown → conservative (higher severity).

  2. Internet exposure (cross-ref iac-network): is the affected workload reachable from the internet? Missing logs on an internet-facing workload = attacker activity invisible.

  3. IAM privilege (cross-ref iac-iam): can the workload's principals do dangerous things? Missing logs on a privileged principal = escalation invisible.

  4. Data sensitivity (cross-ref iac-storage): does the workload handle PII / financial / health / regulated data? Missing logs on a workload touching sensitive data = exfil invisible.

  5. Secrets coupling (cross-ref iac-secrets): are there credentials in the same scope? Missing logs near hardcoded credentials = credential abuse invisible.

  6. Account criticality: prod account vs. dev / sandbox / training.

  7. Environment isolation: is the affected resource in an isolated VPC / account with no production data?

  8. Compensating controls: does another log source partially cover the same events?

  9. Centralization: are logs shipped to a separate account?

  10. Org maturity signal: is this the only logging gap in an otherwise-mature setup (indicates oversight) or a symptom of pervasive under-logging (indicates immaturity — escalates several findings together)?

Compounding rules

  • Missing CloudTrail + production + privileged IAM = Critical.
  • Missing Flow Logs + internet-exposed VPC + privileged workloads in it = Critical.
  • Missing ALB access logs + public ALB + Lambda with admin IAM behind = Critical (chain).
  • Missing S3 object-level + sensitive bucket + public bucket policy = Critical (chain).
  • Missing GuardDuty + leaked credentials (iac-secrets) = High minimum (credential abuse undetectable).
  • Missing EKS audit logs + EKS cluster with NetworkPolicy missing = High (privilege escalation in cluster invisible).
  • Multiple gaps in same telemetry layer (e.g. no Flow Logs + no GuardDuty + no Route53 logs) compound to Critical even when individually each is High — compound_gap finding.
  • Missing alert wiring (log exists but no alarm) = severity floor Medium when the underlying event is high-risk (root login, IAM policy change, CloudTrail stop).

ATTACK CHAIN REASONING

Compose visibility gaps with exposure/privilege findings from sibling skills into named chains. Each chain identifies a sequence an attacker could execute without leaving forensically reconstructible evidence.

See examples/chain-templates.md for 10 detailed chain templates: invisible privilege escalation, undetected persistence, ransomware without telemetry, data exfiltration without audit trails, lateral movement without visibility, CloudTrail tampering, hidden insider activity, stealthy API abuse, stealthy S3 exfiltration, untraceable credential abuse.

Composition mechanics

For each chain:

  • Verify all pre-conditions present in the analyzed inputs.
  • Emit an attack_path with steps[], prerequisites[], break_at[] (the findings whose resolution eliminates the chain).
  • Cross-reference sibling-skill finding IDs (iam_finding_refs, network_finding_refs, storage_finding_refs, secrets_finding_refs).
  • Severity = max link severity, capped by realistic exploitability.

CONFIDENCE SCORING

Every finding carries a confidence score from 0.0 to 1.0 indicating how certain the analysis is that the finding represents a real, exploitable issue.

RangeLabelMeaning
0.9–1.0confirmedDirect evidence in IaC — no aws_cloudtrail resource in scope, no aws_guardduty_detector, no aws_flow_log for a VPC, log group with explicit retention_in_days = 1.
0.7–0.89highStrong signal with minor inference — e.g. CloudTrail exists but data events not configured for a sensitive bucket (cross-ref iac-storage), GuardDuty detector missing a protection feature.
0.5–0.69mediumRequires inference — e.g. org-level trail might exist but org IaC not in scope, SIEM integration inferred from Firehose destination but ingestion unverifiable, alerting pipeline partially visible.
0.3–0.49lowHeuristic-based — e.g. log retention adequacy depends on compliance regime not specified, detection rule quality unknown (rule exists but pattern not parsed), third-party SIEM coverage assumed from IAM role name.
0.0–0.29speculativePossible but unverifiable from IaC alone. Emitted only when potential impact is Critical.

Confidence signals for logging findings

Boosters (+): resource completely absent (no CloudTrail, no GuardDuty), explicit misconfiguration visible (enable = false, is_multi_region_trail = false), log destination bucket flagged as insecure by iac-storage, EventBridge rule with empty targets.

Reducers (-): org-level coverage might exist outside analyzed IaC, third-party SIEM connector detected (coverage unverifiable), compensating control partially covers the gap, resource managed by AWS Control Tower (baseline logging assumed but not confirmed).

Confidence and severity are independent axes.

SEVERITY GUIDANCE

SeverityCriteria
CriticalMissing CloudTrail in any production account. OR: Missing GuardDuty + internet-exposed workloads with privileged IAM. OR: Missing object-level logging + public sensitive S3 bucket. OR: CloudTrail logs writable/deletable by the workload account's admin role without alert + Object Lock. OR: Production EKS without audit log + cluster reachable. OR: Compound chains: no CloudTrail + no Flow Logs + no GuardDuty in prod region. OR: Hardcoded admin credentials (from iac-secrets) + no GuardDuty + no CloudTrail Insights.
HighMissing ALB access logs on public production application. OR: CloudTrail single-region in production. OR: Missing log file validation in production trail. OR: Missing Flow Logs on production internet-facing VPC. OR: Lambda with admin IAM, no log group with retention, no alarm. OR: Missing API Gateway logging on internet-exposed APIs. OR: WAF associated to public ALB but WAF logging off. OR: GuardDuty enabled but finding frequency = 6 hours in prod. OR: Missing EKS audit logging in production. OR: Logs collected but no SIEM / no centralization in production. OR: Missing root-account-usage alarm.
MediumMissing log retention on otherwise-logged sources. OR: GuardDuty detector exists but S3/EKS/Lambda/RDS protection features off. OR: Single-account logging architecture in an org account (no central log archive). OR: Default flow log format (missing pkt-*/flow-direction). OR: Lambda log group Never expire in prod. OR: Missing IAM-mutation EventBridge alerts. OR: Missing alarms on CloudTrail Stop / Config Stop events. OR: Missing Macie for accounts with S3 PII.
LowMissing logging in clearly-isolated dev/sandbox environments. OR: Suboptimal retention values (slightly under recommended) without compliance binding. OR: Missing optional EKS log types (controllerManager, scheduler). OR: Missing Inspector / Trusted Advisor depth.
InfoObservations: "This account has GuardDuty in us-east-1 but no workloads detected in us-east-2 — verify intentional regional scope." OR: "Detective is not enabled — useful for investigation but optional."

Severity floors

  • Any production finding cannot be lower than medium.
  • Any finding on a workload with admin-equivalent IAM (from iac-iam) cannot be lower than medium.
  • Any finding on a workload reachable from the internet (from iac-network) cannot be lower than medium.
  • Any chained finding (in an attack chain) cannot be lower than high.

Severity ceilings

  • A finding with strong compensating control (a different detector covers the same category) drops one tier.
  • A finding in a clearly-isolated sandbox with no exposure / privilege / data can drop to low regardless of intrinsic severity.

FALSE POSITIVE REDUCTION

Aggressive noise reduction. Findings are never silently dropped — they are downgraded with a recorded reason.

Heuristics

  1. Intentional cost-trim in non-prod: If the IaC clearly tags resources Environment=dev or Environment=sandbox AND those resources have no internet exposure (iac-network), no sensitive data (iac-storage), no privileged IAM (iac-iam), no secrets nearby (iac-secrets), downgrade missing-logging findings by 1-2 tiers.

  2. Org-level coverage suffices: If an organization trail / GuardDuty delegated admin / Security Hub aggregator is detected covering this account, missing per-account resources are downgraded to info (org coverage suffices). Verify with aws_organizations_* resources if present.

  3. Local + central duplication: If both a per-account trail and an org trail exist, the per-account trail's missing features (e.g. data events) may be acceptable if the org trail covers them. Cross-check.

  4. Documented exclusion markers: Inline annotations like # iac-logging-monitoring:ignore=<rule_id> reason="..." or IacLoggingIgnore tag. Always require a reason. Record suppressions.

  5. Project-level exception list: iac-logging-monitoring.exceptions.yaml listing resource ARNs / IaC addresses with documented justifications.

  6. Compensating-control recognition:

    • Missing CloudTrail data events on S3, but bucket has full server access logging + Macie monitoring + Object Lock + GuardDuty S3 protection → downgrade.
    • Missing Flow Logs, but VPC has Network Firewall logging that captures equivalent visibility → downgrade.
    • Missing ALB access logs, but CloudFront in front of ALB has access logs + WAF logging → partial downgrade.
  7. Third-party SIEM integration recognition: Datadog/Splunk/Sumo/Lacework/Wiz/CrowdStrike Falcon LogScale connectors (visible as IAM roles, Firehose targets, Lambda extensions, or Kinesis subscription filters) are accepted as centralized logging. Downgrade no centralized logging findings when one is detected.

  8. Bootstrap / CDK-generated resources: CDK and similar tools sometimes deploy logging defaults that look weak (e.g. short retention on intermediary log groups for build pipelines). Match against known bootstrap shapes; downgrade.

  9. Sandbox / training accounts: Accounts whose every resource is tagged Purpose=training, Lifecycle=ephemeral, or which are explicitly listed in a sandbox accounts list. Downgrade missing-logging severely.

  10. Cross-finding coupling check: A finding becomes informational if its severity floor would only matter when paired with another finding that doesn't exist in this codebase (e.g. "missing GuardDuty S3 protection" but no sensitive S3 bucket in scope — drop severity).

Verbosity by verdict

  • likely_real (gap clearly exists and matters): full detail.
  • possibly_real (gap exists but mitigated by compensating control): compressed detail, tagged for human review.
  • intentional_omission (clearly intentional, well-scoped): logged in suppressions[], not in primary findings.

OUTPUT FORMAT

See examples/output-format.md for the complete output schema specification.

EXAMPLE FINDINGS

See examples/findings.md for detailed example findings with severity rationale and evidence.

EXAMPLE ATTACK PATHS

See examples/attack-paths.md for detailed example attack path narratives.

EXAMPLE JSON OUTPUT

See examples/json-output.md for a complete example JSON output document.

CORRELATION OPPORTUNITIES

This skill's findings are most valuable when joined with sibling-skill outputs via shared resource identifiers. Emit correlation_hints on every finding.

Correlated skillWhat to look forWhy it matters
iac-iamPrincipals with cloudtrail:*, guardduty:*, config:*, wafv2:*, logs:Delete*, s3:Delete* on log buckets, kms:Disable* on log keys; admin-equivalent roles whose actions would be invisible.Determines who could disable or bypass telemetry; informs CloudTrail tampering chains.
iac-networkInternet-exposed workloads → drives logging-required findings; flow log coverage of internet-facing VPCs.A missing log on an isolated workload is less critical than on an exposed one.
iac-storageData sensitivity (PII / financial / health tags) of buckets and tables → drives data-event requirement; log bucket security itself.Sensitive data without data-plane telemetry is the worst-case configuration.
iac-secretsHardcoded credentials in scope → drives "missing GuardDuty CredentialAccess detection" and "missing CloudTrail Insights for unusual API".A leaked credential is most dangerous when its use would be invisible.
iac-resource-policiesLog bucket policies, KMS key policies, SNS topic policies (cross-account log delivery) — verifies log destinations aren't world-writable / world-readable.Log destination compromise = telemetry compromise.
iac-encryptionKMS keys for log destinations — verifies CMK, key rotation, key policy.Logs encrypted with weak/shared keys are less trustworthy as evidence.
iac-supply-chainCI/CD pipelines producing infrastructure — verifies pipelines have audit logs and that pipeline-deployed changes are themselves recorded.Supply chain compromise should be detectable.
iac-threat-modelComposite model consuming this skill's attack paths and detection matrix.Higher-order narratives.
iac-reportAll findings + chains, deduplicated and prioritized across skills.Human-readable output.

correlation_hints example:

json
{
  "shared_resources": ["aws_cloudtrail.audit", "aws_s3_bucket.log_archive"],
  "related_skills": ["iac-iam", "iac-storage", "iac-network"],
  "join_keys": {
    "account_id": "123456789012",
    "iac_address": "aws_cloudtrail.audit"
  }
}

LIMITATIONS

The skill is honest about what it does NOT and CANNOT do reliably:

  1. Static IaC only: We cannot verify that CloudTrail / GuardDuty / etc. are currently logging in the live account — only that the IaC declares them. A trail with enable_logging = true in IaC may have been stopped via console. Live-mode runtime correlation is future work.

  2. Org-level coverage inference: When org resources (aws_organizations_*, delegated admins) aren't in scope, we cannot tell whether an org trail / org GuardDuty already covers an account. We warn and assume worst-case (no org coverage).

  3. SIEM ingestion quality: We detect subscription filters / Firehose / SIEM-connector roles but cannot validate that the SIEM is actually parsing or alerting on the data — that requires SIEM-side inspection.

  4. Detection rule quality: We flag presence/absence of metric filters / EventBridge rules / Security Hub controls but do not assess rule correctness (a metric filter with the wrong pattern still counts as "present"). Rule quality review needs runtime correlation or rule-DSL parsing.

  5. Cost-vs-coverage tradeoffs: We recommend retention / feature enablement that has cost implications. The skill flags cost where relevant but does not budget. Customer must reconcile.

  6. Cross-account dependencies: When a CloudTrail in account A delivers to a bucket in account B, and only A's IaC is in scope, we cannot verify B's bucket policy / Object Lock / KMS / SCP. Flag as cross_account_unverified.

  7. Backup / DR detection: We detect presence of DLM lifecycle policies, AWS Backup plans, replication, etc. but cannot validate restore correctness — that requires test data.

  8. Multi-cloud secondary: Azure / GCP equivalents (Azure Monitor / Defender, Cloud Logging / SCC) are recognized only at a coarse level; deep Azure/GCP analysis is future work.

  9. Custom log shippers and bespoke pipelines: Non-canonical patterns (custom Fluentd configs in ConfigMaps, sidecar agents, manual Firehose configurations) may not be recognized. Flag as unknown_pipeline_topology and proceed conservatively.

  10. Time-to-detect not measured: We cannot tell whether GuardDuty findings are triaged in minutes or weeks — that's a process metric. We can only verify the technical chain exists.

  11. SCP-based protections: We detect SCP references in IaC if present, but cannot evaluate the org-attached SCPs unless they're in the analyzed IaC.

  12. Macie classification accuracy: Presence of Macie doesn't guarantee PII discovery. We flag presence; effectiveness is runtime-dependent.

  13. Region-by-region completeness: GuardDuty/SecHub/Config are per-region. If an account uses 5 regions but IaC defines detectors only in 2, the other 3 are blind — but we may not always know all regions the account uses unless resources in those regions are declared.

FUTURE IMPROVEMENTS

  1. Live-account correlation mode: Call AWS APIs to verify trails/detectors are actually logging, GuardDuty findings flowing, EventBridge rules firing.
  2. Detection rule quality: Parse metric filter/EventBridge rule patterns; verify they match canonical patterns.
  3. Org-aware mode: Reconcile per-account findings against org-level coverage.
  4. MITRE ATT&CK coverage map: Map detectors to cloud techniques; emit coverage scorecard.
  5. SCP analysis: Evaluate whether SCPs prevent logging mutation.
  6. Cost estimation: Per-finding cost impact (log volume × ingestion + storage).
  7. Pipeline graph visualization: Mermaid/D2 representation of alerting pipeline with broken-link highlights.
  8. Forensic-readiness benchmarks: Industry-vertical templates (PCI/HIPAA/SOC2/FedRAMP/ISO27001) with required-event tables.
  9. Detection-engineering content packs: Downloadable Terraform modules for CIS-aligned metric filters + alarms.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Iac Logging Monitoring AI 技能有什么作用?

深入分析 AWS 基础设施即代码(IaC)的日志记录、监控和检测工程。检测 CloudTrail/GuardDuty/Security Hub/Detective 覆盖缺失、VPC Flow Logs 被禁用、ALB/WAF/S3/Route53/RDS/Lambda/API Gateway/ECS/EKS 审计日志缺失、日志保留策略薄弱、日志存储桶公开或未加密、告警管道缺失,以及让攻击者得以在不被发现的情况下活动的连锁可见性故障。分析检测盲区、攻击者滞留时间、取证准备情况、勒索软件和数据外泄的可检测性,并区分有意削减成本与危险的监控缺口。读取 `iac-analysis`、`iac-iam`、`iac-network`、`iac-storage` 和 `iac-secrets` 的输出,将遥测缺失与暴露及权限过大的工作负载关联起来。生成可供 `iac-correlate`、`iac-report` 和 `iac-threat-model` 使用的发现结果。

为什么在 TypingMind 中使用 Iac Logging Monitoring?

因为您只需安装一次,就能搭配任何模型使用。Iac Logging Monitoring 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Iac Logging Monitoring?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/senaykt/iac-security-scan-skills/tree/main/.agents/skills/iac-logging-monitoring。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Iac Logging Monitoring?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Iac Logging Monitoring 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Iac Logging Monitoring 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Iac Logging Monitoring AI 技能免费吗?

是的。senaykt 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇