Create and validate a rule
Connect one passive trigger to one active action in the Rules editor.
Prepare the profiles
Create or import an enabled passive trigger and an enabled active action. This tutorial uses the downloadable examples:
Example_Debug_Query_Parameter: detects a query parameter named
debug.Example_Marker_Reflection: appends a marker to query values and reports body reflection.
The trigger identifies a request. It does not by itself promise that the action will mutate only that parameter. Active profiles retain their own insertion-point behavior.
Use the Rules editor
Open Rules → Add and enter a unique name and comments.
Add an enabled Match row. Leave the first operator empty, choose Passive Request, then the exact trigger profile name.
Add an enabled Execute row. Choose Profile, then the exact active name.
Choose All Matches for a transparent test run with a small input batch.
Save and confirm the rule is enabled. Saving through the editor enables the rule; disable it again if it is a draft.
Launch Local Scanner → Smart Scan on an exchange containing
?debug=1.Inspect Scanners → Smart for the trigger/action and Scanners → Active for the actual probes.
Exported example
Download rule_Example_Debug_To_Reflection.bb. Put it in the rules directory, with its referenced profiles in profiles, then reload Pro. Do not send the rule to Server as a scan profile.
Check both directions
Use a request without debug and confirm it does not trigger this rule. Use ?other=debug to check that a value is not mistaken for a name. Verify the target profile is still enabled and that its final requests are appropriate for the assessment.
For a tag action, inspect every enabled active profile with that tag. Adding a new profile to a tag can broaden an existing rule without changing the rule file.
Import, maintenance and dependencies
Keep exact referenced names stable. Renaming/deleting a profile can leave a rule pointing at nothing. Use unique issue names for passive triggers too: the current evaluator resolves profile references to issue names.
Back up/export before editing, keep drafts disabled, and inspect the saved file after changes. For portable external editing, avoid commas in names/tags used in rule rows. Use the format reference rather than inventing a new condition schema.
Last updated
