I need to extract data that matches domains external to my organization. In this case, es@city-data.com but I would like to exclude others like yahoo gmail Expt among others. How could I do it? The logic example I'm trying to give is similar to this...... and not $w.network.email.from = "MyOrgantization@ .*"
Rule Pishing_365{
meta:
author =""
description ="pishing 365"
severity ="High"
events:
$w.metadata.product_name ="Office 365"
($w.metadata.event_type ="EMAIL_UNCATEGORIZED"or$w.security_result.category ="MAIL_SPAM" and not $w.network.email.from = "MyOrgantization@ .*")