Post

A Blue Team ECS Log Baseline for n8n

A Blue Team ECS Log Baseline for n8n

Security automation platforms often get monitored less than the systems they automate. That is backwards. If n8n can enrich alerts, update tickets, disable accounts, or call cloud APIs, then defenders need a clear baseline for the platform itself.

On ECS, the useful evidence is spread across container logs, service events, load balancer logs, CloudTrail, VPC Flow Logs, WAF logs, and downstream SaaS audit logs. The job is to connect those signals into a small set of operational questions.

Context

Problem: n8n incidents are hard to investigate when execution, deployment, network, and cloud API events are reviewed separately. Approach: Define a minimum ECS log baseline and normalize identifiers across the automation path. Outcome: The blue team can distinguish noisy workflow failures from suspicious platform behavior.

Minimum log sources

Start with these sources:

  • ECS service deployment events.
  • ECS task start, stop, and health check failures.
  • CloudWatch Logs from n8n containers.
  • ALB access logs for editor and webhook routes.
  • WAF logs for blocked and counted requests.
  • VPC Flow Logs for task subnets or ENIs.
  • CloudTrail events for ECS, Secrets Manager, IAM, and deployment tooling.
  • n8n audit and execution data where licensing and retention allow it.

Each source sees a different part of the story. Container logs show application behavior, while CloudTrail shows who changed infrastructure.

Detection questions

Good baselines are question-led:

  • Did a new task definition introduce new secrets or environment variables?
  • Did a deployment happen outside the normal release path?
  • Did a webhook route receive traffic after being removed from documentation?
  • Did a worker start talking to a destination it has never contacted before?
  • Did failed executions spike after a credential change?
  • Did the ECS task role call an AWS API outside its expected service set?

These questions become dashboards, alerts, and weekly review items.

Correlation pattern

Use a consistent release ID and workflow ID across logs.

1
2
3
4
release_id=rel-2026-04-25.1
service=n8n-worker
workflow_id=wf-phishing-triage
case_id=INC-10428

n8n workflows can pass these values into tickets and chat notifications. ECS deploy tooling can inject the release ID as an environment variable. Downstream automation should preserve it when possible.

Alert candidates

  • Task definition changed without an approved release ID.
  • New outbound destination from an n8n subnet.
  • Multiple webhook signature failures from the same source.
  • Worker crash loop after a workflow import.
  • Secrets Manager reads by an unexpected role.
  • ECS exec enabled or used on production tasks without break-glass approval.

Takeaways

The best blue-team baseline for n8n on ECS is not a giant log dump. It is a small set of questions backed by consistent identifiers, reliable collection, and enough retention to replay an automation incident.

This post is licensed under CC BY 4.0 by the author.