Blog

Understanding TCP Flags in AWS VPC Flow Logs

In VPC Flow Logs, TCP flags are bit masks, meaning they can be combined to create unique numbers....

Understanding TCP Flags in AWS VPC Flow Logs
On this page
Why Security Groups Matter More Than Ever
The Three-Phase Approach to Security Group Hardening
Beyond Defense: Security as a Business Enabler
Conclusion
On this page
Why Security Groups Matter More Than Ever
The Three-Phase Approach to Security Group Hardening
Beyond Defense: Security as a Business Enabler
Conclusion

Understanding TCP Flags in AWS VPC Flow Logs

TCP flags in AWS VPC Flow Logs provide valuable information about the state and direction of TCP connections. These flags are binary indicators represented as a decimal value in flow logs.

‍

What are TCP Flags?

TCP flags are control bits in the TCP header that indicate specific conditions during data transmission. 

In VPC Flow Logs, these flags are bit masks, meaning they can be combined to create unique numbers. These combinations happen when multiple requests occur within the "aggregation interval" of the flow logs.

The decimal value is the sum of all active TCP flags in the connection, with each flag representing a specific binary position.

Below some examples:

  • FIN — 1
  • SYN — 2
  • RST — 4
  • SYN-ACK — 18

FIN

Decimal Value: 1

VPC Flow Logs - TCP FIN flag

SYN

Decimal Value: 2

VPC Flow Logs - TCP SYN flag

RST

Decimal Value: 4

VPC Flow Logs - TCP RST flag

SYN-ACK

Decimal Value: 18

VPC Flow logs - TCP SYN-ACK flag

‍

Common TCP Flag Combinations

The following table presents the most commonly observed TCP flag combinations in VPC Flow Logs.

While there are other possible flag combinations, these patterns represent the typical connection lifecycle events you'll encounter when analyzing your network traffic.

‍

VPC Flow Logs TCP Flags Table

‍

‍

Blog
Mounira Remini - Founder & CEO
June 30, 2025
2min

Watch a Demo

Discover how CloudFence's AI-driven engine establishes behavioral baselines, delivers real-time visibility, and detects threats before they escalate—helping your team shift from reactive firefighting to strategic cloud security management.