Prerequisites
Rulesets are pushed using oras (OCI Registry As Storage), a CLI tool for pushing and pulling OCI artifacts. Install it before proceeding:- macOS
- Linux
- Windows
Directory structure
Organize your rules in a directory before pushing. You can use any folder structure — oras will push the entire directory tree as a single artifact.Writing rules
- YARA
- FwHunt
YARA rules follow the standard YARA format. This example detects an embedded PE file with a suspicious import:See the YARA documentation for the full rule syntax.
Pushing a Ruleset
1
Find your registry hostname
Your registry hostname is derived from your platform URL. If your platform is at
app.{instance}.binarly.cloud, your registry is at registry.{instance}.binarly.cloud. For example, if you access the platform at app.i7sydgb4.binarly.cloud, your registry hostname is registry.i7sydgb4.binarly.cloud.2
Log in to the Binarly Registry
Use your Binarly account email and password.
3
Push the Ruleset
From the parent directory of your rules folder, push its contents to the registry. Use a meaningful name and tag to identify the Ruleset version.To tag a specific version instead of overwriting
latest:4
Verify in the platform
After a successful push, the Ruleset appears in Rules → Rulesets. From there you can open it in the Playground to test individual rules, or deploy it to run on scans.
Updating a Ruleset
Push to the same name with an updated tag. The platform tracks Ruleset versions — previous versions remain accessible and findings already generated from them are linked to the rule revision that produced them.Findings generated from an earlier version of a Ruleset remain visible and continue to link to the specific rule revision that produced them, even after the Ruleset is updated.
Other useful commands
List Rulesets
List tags
Pull a Ruleset
Download a Ruleset to inspect or modify it locally:Re-tag without re-pushing
Promote a specific version tolatest without uploading the files again: