text code block:data_stream.dataset:network_traffic.mongodb and ( network_traffic.mongodb.method:( "dropDatabase" or "drop" or "dropIndexes" or "dropAllUsersFromDatabase" or "dropAllRolesFromDatabase" ) or ( network_traffic.mongodb.method:"msg" and network_traffic.mongodb.query:( *dropDatabase* or *dropIndexes* or *dropAllUsersFromDatabase* or *dropAllRolesFromDatabase* or *\"drop\"* ) ) )
Install detection rules in Elastic Security
Detect First-Time Destructive MongoDB Command from a Client IP in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).