Because of how the OS interprets some stuff, you currently can't do it by command line, unfortunately. I'm pressing them on that a bit though.
This should cover you though where you can add known abused pipe names.
Rule {
Process {
Include OBJECT_NAME { -v ** }
}
Target {
Match FILE {
Include OBJECT_NAME {
-v "**pipe\\MSSE-*-server"
-v "**pipe\\msagent_*"
-v "**pipe\\postex_*"
}
Include -access "CONNECT_NAMED_PIPE"
}
}
}
This might work for what you need too.. I haven't tested it, but would be curious as to the results:
Rule {
Process {
Include OBJECT_NAME { -v "cmd.exe" }
}
Target {
Match FILE {
Include OBJECT_NAME {
-v "**pipe\\**"
}
Include -access "CONNECT_NAMED_PIPE"
}
}
}