Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.
SECRET//ORCON//NOFORN
2.3.5 Rule Documentation
The Grasshopper rule engine supports variable substitution and in-line
comments. Variable substitution can be very helpful when a certain string is
repeated multiple times in the rule. An example of this is shown below:
RULE_DIR=..\..\Rules
# Doesn't work on Rising for vista and newer when the system is deactivated
not and {
os.at_least(vista-sp0)
rule.import(RULE_DIR\rising.rule)
notos.activated
}
In the above example, the imported rule files are stored in the common rule
directory. A variable was created for the common rule directory, which simplified
the rule generation and it centralizes the value, so if it changes in the future, it
will be easier to update. In addition to the variable, a comment was added to
describe the reason for the rule values, which can be especially helpful for non-
intuitive rule entries.
32
SECRET//ORCON//NOFORN