<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title><![CDATA[Tal Borenstein - Elastic Security Labs]]></title>
    <description><![CDATA[Trusted security news & research from the team at Elastic.]]></description>
    <copyright><![CDATA[© 2026. Elasticsearch B.V. All Rights Reserved]]></copyright>
    <image>
      <title><![CDATA[Tal Borenstein - Elastic Security Labs]]></title>
      <url>https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blte2c6b841aff36df4/6a88d9784acc96e3f324863d/security-labs-thumbnail.png</url>
      <link>https://www.elastic.co/security-labs/author/tal-borenstein</link>
    </image>
    <link>https://www.elastic.co/security-labs/author/tal-borenstein</link>
    <atom:link href="https://www.elastic.co/security-labs/rss/author/tal-borenstein.xml" rel="self" type="application/rss+xml"/>
    <language><![CDATA[en]]></language>
    <lastBuildDate>Fri, 04 Dec 2026 16:56:37 GMT</lastBuildDate>
  <item>
    <title><![CDATA[Four AWS containment workflows that run on one analyst approval]]></title>
    <description><![CDATA[AWS remediation runs from the alert, with no Lambda in between. Elastic Workflows signs its own AWS API calls, deactivates IAM keys, quarantines EC2 interfaces, restarts CloudTrail or blocks public S3, then checks AWS to confirm the change.]]></description>
    <content:encoded><![CDATA[<p>Elastic Workflows now signs its own AWS API requests. One step, <code>aws.request</code>, reaches AWS Identity and Access Management (IAM), Amazon Elastic Compute Cloud (EC2), Amazon Simple Storage Service (S3), AWS CloudTrail, Amazon CloudWatch Logs, Amazon GuardDuty, and AWS Security Hub in Elastic 9.7, with no AWS Lambda function to deploy or maintain.</p><p>We used it to publish four AWS remediation workflows in the Elastic Workflows Template Library: </p><ul><li><p>Deactivate a compromised IAM access key.</p></li><li><p>Quarantine an EC2 network interface.</p></li><li><p>Restart a stopped CloudTrail.</p></li><li><p>Apply all four S3 Block Public Access controls. </p></li></ul><p>Each one pulls its target from the alert and shows an analyst the exact action against current AWS state. Nothing changes until that analyst approves the action. The workflow then reads the target back from AWS, and the execution fails if the state is wrong.</p><h2>Key takeaways</h2><ul><li><p>Elastic Security alerts can supply AWS resource context directly to a remediation workflow.</p></li><li><p>A human-in-the-loop (HITL) gate keeps an analyst in control before a consequential cloud change.</p></li><li><p>A dedicated, least-privilege connector limits what each workflow can modify.</p></li><li><p>Approved mutations are followed by AWS read-back and explicit verification.</p></li><li><p>Across IAM, EC2, CloudTrail, and S3, invalid targets and unsuccessful verification fail visibly instead of appearing as successful remediation.</p></li></ul><h2>The AWS connector signs any AWS API call</h2><p>Until now, getting a workflow in Elastic Workflows to act in AWS meant one of two things:</p><ul><li><p>We had a connector for that specific service, like Lambda or CloudWatch.</p></li><li><p>Or you deployed a Lambda function in your own account to make the call for you. </p></li></ul><p>The second option works, but it’s one more piece of code to deploy and secure, as well as maintain, before the workflow can do anything.</p><p>The reason is request authentication; that is, AWS API requests made with IAM credentials must be signed with AWS Signature Version 4 (SigV4), using the credentials, request contents, and current time. An unauthenticated HTTP session cannot do that for you.</p><p>The new AWS connector works by letting you store a valid AWS access key ID and secret access key once, and every request a workflow sends through the connector is signed for you. It isn't tied to one service; IAM, EC2, S3, CloudTrail, CloudWatch Logs, Security Hub, GuardDuty, or other AWS service APIs can be called through the same connector.</p><p>To set it up, <a href="https://www.elastic.co/docs/reference/kibana/connectors-kibana/aws-action-type">create an AWS connector</a> in Kibana and paste in the keys. The <strong>Test</strong> button sends an AWS Security Token Service (STS) API call for <code>GetCallerIdentity</code> (basically, AWS <em>Who am I?</em>), so you know that the keys work before any workflow runs:</p><img src="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt4df1c0005fb08533/6b10ef041312d1336b311f90/image12.png" alt="Kibana AWS connector test showing a successful STS GetCallerIdentity call before any AWS remediation workflow runs" /><p>In Workflows, the connector is a single <a href="https://www.elastic.co/docs/explore-analyze/workflows/steps">step</a>, <code>aws.request</code>, and it’s available starting with Elastic 9.7. The step is built in, so there’s nothing else to install or deploy.</p><h2>How do I call an AWS API from Workflows?</h2><p>You describe the AWS call in YAML, as an <code>aws.request</code> step in your workflow. If you’re new to Workflows, you can start with <a href="https://www.elastic.co/search-labs/blog/elastic-workflows-automation">Building automation with Elastic Workflows</a>. The step builds the URL and signs the request, and then it sends it. You can set the following fields:</p><ul><li><p><code>service</code>: The AWS service, as it appears in its hostname; for example, <code>iam</code>, <code>ec2</code>, <code>s3</code>, or <code>logs</code>.</p></li><li><p><code>region</code>: For example, <code>us-east-1</code>. Leave it out for global services, like IAM.</p></li><li><p><code>method</code><code>: </code><code>GET</code> (the default), <code>POST</code>, <code>PUT</code>, <code>PATCH</code>, <code>DELETE</code>, or <code>HEAD</code>.</p></li><li><p><code>path</code>: The request path. It defaults to <code>/</code>.</p></li><li><p><code>query</code>: Query string parameters.</p></li><li><p><code>headers</code>: Extra headers, such as the <code>Content-Type</code> and <code>X-Amz-Target</code> that JSON APIs need.</p></li><li><p><code>body</code>: Text is sent as is. Anything else, like a YAML object, is sent as JSON.</p></li><li><p><code>signingName</code>: Rarely needed. A few APIs sign under a different name than their hostname. For example, <code>bedrock-runtime</code> signs as <code>bedrock</code>.</p></li></ul><p>With a region, the request goes to <code>https://{service}.{region}.amazonaws.com{path}</code>. Without one, it goes to <code>https://{service}.amazonaws.com{path}</code>.</p><p>AWS APIs come in three styles. Here’s what each one looks like in the Workflows YAML format for <code>aws.request</code>:</p><p><strong>API style</strong></p><p><strong>Operation named by</strong></p><p><strong>Parameters go in</strong></p><p><strong>Response</strong></p><p><strong>Example services</strong></p><p>Action-style</p><p><code>Action</code> query parameter</p><p>Query string</p><p>XML (returned as text)</p><p>IAM, STS, EC2</p><p>JSON</p><p><code>X-Amz-Target</code> header</p><p>JSON body</p><p>JSON (parsed)</p><p>CloudWatch Logs, CloudTrail</p><p>REST-style</p><p>HTTP method and path</p><p>Path and body</p><p>XML (returned as text)</p><p>S3</p><h3>Action-style AWS APIs (IAM, STS, EC2)</h3><p>Older APIs take an <code>Action</code>and a <code>Version</code>, along with the parameters for that action. This step lists the access keys of the user from the alert:</p>- name: list_access_keys
  type: aws.request
  connector-id: "REPLACE_WITH_AWS_CONNECTOR_ID"
  with:
    service: iam
    query:
      Action: ListAccessKeys
      Version: "2010-05-08"
      UserName: "{{ event.alerts[0].user.name }}"<h3>JSON AWS APIs (CloudWatch Logs, CloudTrail)</h3><p>Newer APIs take a JSON body and name the operation in the <code>X-Amz-Target</code> header. This step lists five log groups:</p>- name: list_log_groups
  type: aws.request
  connector-id: "REPLACE_WITH_AWS_CONNECTOR_ID"
  with:
    service: logs
    region: us-east-1
    method: POST
    headers:
      Content-Type: application/x-amz-json-1.1
      X-Amz-Target: Logs_20140328.DescribeLogGroups
    body:
      limit: 5<h3>REST-style AWS APIs (S3)</h3><p>REST-style APIs, like S3, use the method and path instead. The following S3 workflow shows an example.</p><h3>What an aws.request step returns</h3><p>An <code>aws.request</code> step returns the response <code>status</code>, <code>headers</code>, and <code>data</code>. JSON responses are parsed by <code>aws.request</code>, so later steps can read fields directly; for example, <code>{{ steps.list_log_groups.output.data.logGroups[0].logGroupName }}</code>. XML responses, such as EC2's, come back as text.</p><p>If AWS rejects the request (for example, with <code>AccessDenied</code> or a throttling error), the step fails with AWS's own error message. That means <code>on-failure</code> retries and error handling work the same as for any other step.</p><h2>A repeatable AWS remediation pattern</h2><p>The published workflows validate targets before they reach AWS, require approval, limit each mutation, and verify the result. If an approved action cannot be verified, the execution fails.</p><ol><li><p>Resolve resource identifiers and account or Region context from the alert or manual input.</p></li><li><p>Fail closed when the target cannot be established safely.</p></li><li><p>Read current state, and present the exact proposed action to an analyst.</p></li><li><p>Require an explicit approval before mutation.</p></li><li><p>Send a SigV4-signed request through a least-privilege AWS connector.</p></li><li><p>Read the resulting AWS state, retrying only where eventual consistency requires it.</p></li><li><p>Assert the expected state and retain decisions, responses, and failures in execution history.</p></li></ol><img src="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt4f72a828bfea03e7/6b10f0065648e31344422aa1/unnamed.png" alt="Seven-step AWS remediation pattern: resolve context, fail closed, show proposal, approve, call AWS, verify, audit" /><h2>Before you enable an AWS remediation workflow</h2><p>Install each workflow from the Elastic Workflow Template Library, and select an AWS connector during installation. Use a dedicated remediation identity rather than administrator credentials. Scope its policy to the actions and resources that the workflow is allowed to modify.</p><h3>Covering multiple AWS accounts</h3><p>Each AWS connector works in one AWS account. It signs every call with one IAM user's long-term access keys, which are stored in Kibana, and it can't switch to a role in another account. To cover several accounts, you have two options:</p><ul><li><p>Install each workflow once per account, and pick that account's connector during installation.</p></li><li><p>Or keep one workflow, and add an <code>if</code> step per account that picks the connector from the alert's account ID. For example, in the CloudTrail workflow:</p></li></ul>- name: production_account
  type: if
  condition: "${{ event.alerts[0].aws.cloudtrail.recipient_account_id == '111111111111' }}"
  steps:
    - name: start_logging_production
      type: aws.request
      connector-id: "PRODUCTION_ACCOUNT_CONNECTOR_ID"
      with:
        service: cloudtrail
        region: "{{ event.alerts[0].cloud.region }}"
        method: POST
        headers:
          Content-Type: application/x-amz-json-1.1
          X-Amz-Target: CloudTrail_20131101.StartLogging
        body:
          Name: "{{ event.alerts[0].aws.cloudtrail.flattened.request_parameters.name }}"<p>Add one block like this for every account, each with that account's connector. Add a final check that fails the run when no account matches, so an alert from an account without a connector doesn't go unnoticed.</p><h3>Required alert fields by workflow</h3><p><strong>Workflow</strong></p><p><strong>Target</strong></p><p><strong>Required alert fields</strong></p><p><strong>AWS permissions</strong></p><p>Deactivate IAM access key</p><p>AKIA long-term user key</p><p><code>user.name</code>, <code>aws.cloudtrail.user_identity.access_key_id</code></p><p><code>iam:UpdateAccessKey</code>, <code>iam:ListAccessKeys</code></p><p>Quarantine EC2 network interface</p><p>Elastic Network Interface (ENI) in the configured Amazon Virtual Private Cloud (VPC)</p><p><code>aws.vpcflow.interface_id</code> or <code>aws.cloudtrail.flattened.request_parameters.networkInterfaceId</code>, plus <code>cloud.region</code></p><p><code>ec2:ModifyNetworkInterfaceAttribute</code>, <code>ec2:DescribeNetworkInterfaces</code></p><p>Restore CloudTrail logging</p><p>Trail, by account-qualified Amazon Resource Name (ARN)</p><p><code>aws.cloudtrail.flattened.request_parameters.name</code>, <code>aws.cloudtrail.recipient_account_id</code>, <code>cloud.region</code></p><p><code>cloudtrail:StartLogging</code>, <code>cloudtrail:GetTrailStatus</code></p><p>Block public S3 access</p><p>Bucket, owner-bound</p><p><code>aws.cloudtrail.flattened.request_parameters.bucketName</code>, <code>aws.cloudtrail.recipient_account_id</code>, <code>cloud.region</code></p><p><code>s3:PutBucketPublicAccessBlock</code>, <code>s3:GetBucketPublicAccessBlock</code></p><p>Only long-term AKIA IAM user keys are supported. ASIA session credentials require session revocation instead.</p><p>The IAM, EC2, and S3 workflows process the first alert in an execution. The CloudTrail workflow processes the complete alert batch, normalizes names and ARNs, groups duplicate alerts by canonical trail ARN, and requests approval for each distinct trail.</p><p>Field availability depends on the source detection rule and integration version. Validate the required values before enabling a workflow as a rule action. If a field is absent, enrich the alert or use a reviewed manual execution. Don’t infer resource identifiers from untrusted text.</p><p>For alert-driven CloudTrail and S3 remediation, and for EC2 when the network interface ID comes from a CloudTrail event, CloudTrail request parameters must be retained in flattened form. EC2 alerts that use aws.vpcflow.interface_id don't depend on this setting. The S3 workflow deliberately doesn’t parse the keyword representation.</p><h3>EC2 isolation security group and VPC requirements</h3><p>The EC2 workflow requires, at installation:</p><ul><li><p>A pre-created isolation security group with no inbound or outbound rules.</p></li><li><p>The ID of that security group’s VPC. </p></li></ul><p>The workflow verifies that the target ENI belongs to the configured VPC before requesting approval. Therefore, one installation supports one VPC. For multiple VPCs, install a separate workflow copy with a VPC-local isolation security group for each VPC. The workflow doesn’t currently support a VPC-to-security-group mapping. The isolation group should have no inbound or outbound rules. Prepare and review it before an incident instead of creating it dynamically during containment.</p><img src="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt611ba85bd2c5624f/6b10f0de907b6a1263137276/image6.png" alt="Elastic Security workflow list showing four AWS remediation templates for S3, CloudTrail, EC2 and IAM" /><h2>Deactivate a compromised IAM access key</h2><p>Imagine that a detection identifies an IAM access key used from an unusual location. Deleting the key immediately may disrupt an investigation or workload. Setting it to inactive stops further use while preserving the key record for review and rollback.</p><p>The workflow supports long-term IAM user access keys whose IDs begin with <em>AKIA</em>. It rejects temporary ASIA credentials before making an IAM request and directs the analyst toward session revocation. Unrecognized identifiers fail with guidance to correct or recheck the input.</p><p>For a supported key, the workflow lists the user’s access keys and displays the parsed response. It then waits for approval. After UpdateAccessKey, it retries ListAccessKeys up to three times to accommodate eventual consistency. The execution succeeds only when the exact target key is confirmed inactive.</p><p>Get the workflow at <a href="https://github.com/elastic/workflows/blob/main/library/workflows/deactivate-aws-iam-access-key/deactivate-aws-iam-access-key.yaml">Deactivate AWS IAM Access Key</a>.</p><h3>IAM permissions and rollback</h3><ul><li><p>Grant <code>iam:UpdateAccessKey</code> and <code>iam:ListAccessKeys</code> on the approved IAM user ARN.</p></li><li><p>Optionally, grant <code>iam:GetAccessKeyLastUsed</code> on <code>*</code> if the workflow is extended to show last-use context before approval.</p></li></ul><p>To roll back, if the investigation concludes that the key is safe, a separately approved workflow can call <code>UpdateAccessKey</code> with <code>Status: Active</code>. Prefer key rotation over reactivation when compromise remains possible.</p><img src="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt1cdbb00ff36c990b/6b10f1257b1d45d111c5c111/image9.png" alt="Deactivate AWS IAM Access Key workflow graph with the analyst approval prompt and ListAccessKeys response" /><img src="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt231294b29a21fece/6b10f153907b6ada3313727a/image5.png" alt="Deactivate AWS IAM Access Key execution succeeding in 50s after approval, deactivation and key verification" /><h2>Quarantine an EC2 workload at its network interface</h2><p>Shutting down a compromised EC2 instance can destroy volatile evidence or interrupt a critical service. It can even trigger automated replacement. The workflow instead replaces the network interface's complete security-group set with a pre-created isolation group. The instance stays available for investigation while the isolation group blocks new network activity.</p><p>The workflow verifies that the target ENI belongs to the configured isolation VPC before requesting approval. It then reads the ENI again and shows the refreshed security-group state. It requires final confirmation, after which it reads the ENI one more time and compares a canonicalized security-group set with the approved state. If the set changed or cannot be parsed, the workflow aborts without mutation.</p><p>The final read narrows but cannot eliminate the nonatomic interval before ModifyNetworkInterfaceAttribute. AWS doesn’t provide a compare-and-swap operation for this change, so coordinating with other ENI writers when preserving concurrent changes is a hard requirement.</p><p>Security-group replacement doesn’t guarantee immediate termination of established tracked connections. A network access control list (ACL) deny can block traffic that crosses subnet boundaries, but it doesn’t affect same-subnet traffic. Use an operating-system or host-level action when same-subnet sessions must be interrupted immediately.</p><p>Get the workflow at <a href="https://github.com/elastic/workflows/blob/main/library/workflows/quarantine-aws-ec2-network-interface/quarantine-aws-ec2-network-interface.yaml">Quarantine AWS EC2 Network Interface</a>.</p><h3>EC2 permissions and rollback</h3><ul><li><p>Grant <code>ec2:ModifyNetworkInterfaceAttribute</code> on the approved target ENI and isolation security group.</p></li><li><p>Grant <code>ec2:DescribeNetworkInterfaces</code> on <code>*</code>, because EC2 Describe actions don’t support resource-level permissions.</p></li></ul><p>The workflow records the DescribeNetworkInterfaces response captured immediately before mutation as the rollback source. Preserve that evidence in an Elastic case or another controlled incident record, and restore exactly that reviewed security-group set after eradication. Don’t assume that the launch-time groups are still correct.</p><img src="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt4bd934e2373e67de/6b10f19460c81c42c23fa0ef/image1.png" alt="Quarantine AWS EC2 Network Interface workflow pausing for analyst approval after isolation VPC verification" /><img src="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt22deb2c4fac111cf/6b10f1c880e54181ee47d00e/image11.png" alt="EC2 quarantine run showing final state comparison, security group replacement and post-change ENI read-back" /><h2>Restart stopped CloudTrail logging</h2><p>Disabling a trail is a common defense-evasion objective because it creates an audit gap without deleting the trail configuration. When a detection identifies <code>StopLogging</code>, the response can be direct: resolve the affected trail, inspect its status, request approval, call <code>StartLogging</code>, and verify <code>GetTrailStatus</code>.</p><p>The production workflow processes the entire alert batch. It normalizes bare names and ARNs into account-qualified trail ARNs and groups duplicate alerts for the same trail into one decision. It also keeps identically named trails that are in different accounts separate. A trail outside the connector's account fails with an AWS error instead of being changed. Organization trails can only be restarted from the management account or a delegated administrator account. Invalid targets are recorded before any valid target enters an AWS request or approval wait.</p><p>Each valid trail receives its own approval. Verification failures are accumulated rather than stopping the loop, allowing later targets to be processed. After all targets are handled, the execution fails if any target was invalid or any approved restoration was not verified.</p><p>Get the workflow at <a href="https://github.com/elastic/workflows/blob/main/library/workflows/restore-aws-cloudtrail-logging/restore-aws-cloudtrail-logging.yaml">Restore AWS CloudTrail Logging</a>.</p><h3>CloudTrail permissions and rollback</h3><ul><li><p>Grant <code>cloudtrail:StartLogging</code>.</p></li><li><p>Grant <code>cloudtrail:GetTrailStatus</code>.</p></li></ul><p>Scope both actions to approved trail ARNs. Starting a trail doesn’t recover events lost while logging was stopped, so the incident timeline should preserve the beginning and end of the audit gap.</p><p>There’s normally no defensive reason to stop logging again. If the workflow targeted the wrong disposable or migration trail, use a separately reviewed action instead of embedding automatic rollback.</p><img src="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt578d844a04398ac6/6b10f2057cdb85cb7df573a4/image2.png" alt="Restore AWS CloudTrail Logging workflow iterating over trail targets and waiting for approval per trail" /><img src="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt530a61e33c0c3373/6b10f227b61431fc287583f8/image7.png" alt="CloudTrail restoration run with StartLogging, GetTrailStatus verification and per-target failure tracking" /><h2>Apply S3 Block Public Access to an exposed bucket</h2><p>An S3 bucket can become exposed through a policy or an ACL. It can also become exposed through a change to its public-access settings. Applying all four Block Public Access controls creates an immediate containment boundary while responders investigate bucket policy, ACLs, access points, and object-level permissions.</p><p>Alert-driven runs require the AWS integration's request-parameter retention mode to be All or Flattened. The workflow reads the bucket name only from flattened request parameters and fails closed when that field is unavailable. It doesn’t parse the attacker-influenced keyword representation.</p><p>The expected bucket owner comes from <code>aws.cloudtrail.recipient_account_id</code>, not the caller’s <code>cloud.account.id</code>. Every S3 read and write includes <code>x-amz-expected-bucket-owner</code>, binding the action to the reviewed resource account. If the bucket belongs to a different account, AWS rejects the call. Manual runs require an explicit owner.</p><p>The workflow distinguishes a missing Block Public Access configuration from other pre-read errors, requires approval, applies all four controls, and then parses the follow-up XML and verifies that every control is true. Missing targets and unsafe pre-read errors, as well as unsuccessful verification, fail the execution.</p><p>Get the workflow at <a href="https://github.com/elastic/workflows/blob/main/library/workflows/block-public-access-aws-s3-bucket/block-public-access-aws-s3-bucket.yaml">Block Public Access to AWS S3 Bucket</a>.</p><h3>S3 permissions and rollback</h3><ul><li><p>Grant <code>s3:PutBucketPublicAccessBlock</code>.</p></li><li><p>Grant <code>s3:GetBucketPublicAccessBlock</code>.</p></li></ul><p>Scope both actions to the approved bucket ARN. Block Public Access doesn’t remove a risky bucket policy or ACL; it prevents those configurations from granting public access. Continue the investigation, and remove the underlying exposure.</p><p>When rolling back, preserve the original four settings in the incident record. Restore them only when public access is an approved business requirement and when the bucket policy, ACLs, access points, and account-level controls have been reviewed.</p><img src="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt04721399e3563af0/6b10f26c58ed8ea29b22cfdf/image4.png" alt="Block Public Access to AWS S3 Bucket workflow showing pre-change settings in the analyst approval prompt" /><img src="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt3319722e19222d9e/6b10f2c14bd60f4752d0f99c/image3.png" alt="S3 Block Public Access run succeeding in 1m 18s after approval, PutPublicAccessBlock and verification" /><h2>Guardrails for AWS remediation in production</h2><p>Approval, least privilege, target validation, and explicit verification turn a powerful API call into a defensible response process.</p><ul><li><p>Use a dedicated connector identity for remediation. Don’t store administrator credentials in the connector.</p></li><li><p>Restrict resource-level actions to approved ARNs. Keep wildcard permissions only for AWS APIs, such as some Describe actions, that don’t support resource scoping.</p></li><li><p>Validate account, Region, resource identifiers, and credential type before presenting approval.</p></li><li><p>Show the analyst the exact action, target, account context, and current state, not only the alert title.</p></li><li><p>Read the resource state back after mutation. A successful HTTP response alone isn’t sufficient evidence of the desired state.</p></li><li><p>Use bounded retries only for transient behavior, such as eventual consistency. Don’t retry authorization failures or invalid targets indefinitely.</p></li><li><p>Capture immediate pre-change state for reversible actions, especially EC2 security-group replacement and S3 public-access settings.</p></li><li><p>Keep rejected decisions and failed executions visible. They’re operational evidence, not noise.</p></li><li><p>Coordinate with other infrastructure writers when AWS doesn’t offer atomic conditional mutation.</p></li><li><p>Test each workflow in a disposable account before attaching it to a production rule.</p></li></ul><h2>Start with one detection in a disposable account</h2><p>Calling the AWS API is the easy part. A production response also has to carry the correct alert fields, show an analyst the exact target, limit the connector's permissions, and prove that AWS reached the requested state. These workflows keep those decisions and result in one execution record.</p><p>The implementation differs by service. IAM requires eventual-consistency retries. EC2 relies on a final comparison before mutation. CloudTrail calls for account-qualified deduplication across an alert batch. S3 needs explicit owner binding and XML verification. The common sequence is still straightforward: establish the resource, approve the target, make the smallest necessary change, and assert the result.</p><p>Start with one detection and one low-risk containment action in a disposable account. Test the alert fields, connector permissions, rejection path, verification logic, concurrency assumptions, and rollback evidence before attaching the workflow to a production rule.</p><h2>About Elastic Security Labs</h2><p>Elastic Security Labs is the threat intelligence branch of Elastic Security dedicated to creating positive change in the threat landscape. Elastic Security Labs provides publicly available research on emerging threats, with an analysis of strategic, operational, and tactical adversary objectives, and then integrates that research with the built-in detection and response capabilities of Elastic Security.</p><p>Follow Elastic Security Labs on Twitter @elasticseclabs, and check out <a href="http://www.elastic.co/security-labs/">our research</a>.</p>]]></content:encoded>
    <link>https://www.elastic.co/security-labs/blog/aws-remediation-workflows-analyst-approval</link>
    <guid isPermaLink="false">aws-remediation-workflows-analyst-approval</guid>
    <category><![CDATA[Cloud Security]]></category>
    <category><![CDATA[AI & Automation]]></category>
    <category><![CDATA[Integrations & Tools]]></category>
    <dc:creator><![CDATA[Bryan Porras Blanch,Tal Borenstein]]></dc:creator>
    <enclosure url="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt008a33403fa82c54/6b10ee87775a31337f24ba13/image10.png" length="0" type="image/png"/>
    <pubDate>Fri, 04 Dec 2026 15:30:00 GMT</pubDate>
  </item>
  </channel>
</rss>