You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In AWS logs, the .requestParameters and .responseElements fields are important to check for more information about the attack, if it succeeded, etc.. so this would be great to output by adding the following to the default_profile.yml file:
We can output the nested JSON as found in the log on a single line.
Ex: responseElements":{"requestId":"6448e604-a047-4564-ba7e-712d66db3d97","routeTable":{"routeTableId":"rtb-0c7c2f4aff3677054","vpcId":"vpc-06fe1a64761a0f720","ownerId":"123837392027","routeSet":{"items":[{"destinationCidrBlock":"10.0.0.0/16","gatewayId":"local","state":"active","origin":"CreateRouteTable"}]},"associationSet":{},"propagatingVgwSet":{},"tagSet":{"items":[{"key":"StratusRedTeam","value":"true"},{"key":"Name","value":"stratus-red-team-ec2-steal-credentials-vpc-public"}]}}}
Since they contain many special characters we need to escape them for CSV/JSON output.
We might also want to support the raw output of sessionContext as well which is also nested JSON.
Instead of hardcoding which fields we expect nested JSON and to output raw, how about we define is as follows:
@YamatoSecurity
I realized that the current implementation already outputs a nested JSON like the one below. It's slightly different from what we originally expected — what do you think? (This is because this feature was released on the sigma-rust side)
In AWS logs, the
.requestParameters
and.responseElements
fields are important to check for more information about the attack, if it succeeded, etc.. so this would be great to output by adding the following to thedefault_profile.yml
file:We can output the nested JSON as found in the log on a single line.
Ex:
responseElements":{"requestId":"6448e604-a047-4564-ba7e-712d66db3d97","routeTable":{"routeTableId":"rtb-0c7c2f4aff3677054","vpcId":"vpc-06fe1a64761a0f720","ownerId":"123837392027","routeSet":{"items":[{"destinationCidrBlock":"10.0.0.0/16","gatewayId":"local","state":"active","origin":"CreateRouteTable"}]},"associationSet":{},"propagatingVgwSet":{},"tagSet":{"items":[{"key":"StratusRedTeam","value":"true"},{"key":"Name","value":"stratus-red-team-ec2-steal-credentials-vpc-public"}]}}}
Since they contain many special characters we need to escape them for CSV/JSON output.
We might also want to support the raw output of
sessionContext
as well which is also nested JSON.Instead of hardcoding which fields we expect nested JSON and to output raw, how about we define is as follows:
where anytime we have the
raw
keyword in the beginning it is treated as a string of JSON data.@fukusuket Sorry for many issues as always, but could I ask you to do this one?
The text was updated successfully, but these errors were encountered: