alert tcp [$HOME_NET,$HTTP_SERVERS] any -> $EXTERNAL_NET any (
msg:"ET POLICY Non-Anonymous LDAPv3 Bind Request Outbound";
flow:established,to_server;
flowbits:set,ET.LDAPBindRequest;
flowbits:isnotset,ET.LDAPBindRequest;
content:"|30|"; startswith;
content:"|02 01|"; within:4;
content:"|60|"; distance:1; within:1;
byte_test:1,>,7,0,relative;
content:"|02 01 03 04|"; distance:1; within:4; fast_pattern;
byte_jump:1,0,relative;
content:"|80|"; within:1;
reference:url,ldap.com/ldapv3-wire-protocol-reference-bind/;
classtype:policy-violation;
sid:2034812; rev:2;
metadata:attack_target Client_and_Server, created_at 2021_12_20, deployment Perimeter, confidence High, signature_severity Informational, updated_at 2021_12_20;
)