> ## Documentation Index
> Fetch the complete documentation index at: https://docs.binarly.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Playground

> Interactively write and test detection rules against images before packaging them into a Ruleset.

The Playground is an interactive rule editor built into the platform. Write a rule, select images to test against, and see matches in real time — without needing to package or deploy anything first. Use it to prototype and validate rules before packaging them into a Ruleset.

## Accessing the Playground

Navigate to **Rules → Playground** in the left sidebar.

<img src="https://mintcdn.com/binarly-bee2cf27/hc0cag9OdCmP7iBd/assets/screenshots/rules/rules1.png?fit=max&auto=format&n=hc0cag9OdCmP7iBd&q=85&s=2a3064be57089c2ea550c9894482c9b2" alt="" width="191" height="499" data-path="assets/screenshots/rules/rules1.png" />

## Interface overview

The Playground is split into three panels:

* **File Explorer** (left) — browse your Rulesets and the individual rules within them. Selecting a rule loads it into the editor.
* **Code Editor** (center) — write and edit your rule. The editor auto-detects the rule format (YARA or FwHunt) as you type, and provides live syntax highlighting, linting, and inline error markers.
* **Test Images and Results** (right) — select images to test against or upload new ones, then view match results after running the scan.

<img src="https://mintcdn.com/binarly-bee2cf27/hc0cag9OdCmP7iBd/assets/screenshots/rules/rules2.png?fit=max&auto=format&n=hc0cag9OdCmP7iBd&q=85&s=8076e5d2c0eb16a5bfad8d9f2598722f" alt="" width="1867" height="1246" data-path="assets/screenshots/rules/rules2.png" />

## Live linting

The editor checks your rule continuously as you type. Syntax errors and lint warnings appear inline and in the margin without needing to trigger a scan. A rule with errors cannot be scanned until the issues are resolved.

## Testing against images

You can test against:

* **Images already in the platform** — select any image from products you have access to using the image search dropdown.
* **Uploaded test images** — upload a file directly in the Playground. Test images are session-only: they are not added to any product, not visible to other users, and are discarded when the session ends.

Once at least one image is selected and the rule has no errors, click **Scan** in the top right to run the rule. Results appear in the Results tab.

## Reading scan results

Results are grouped by image. For each image, the results show:

* Components where the rule matched
* Build environment details for matched binaries
* Code listing showing the location of the match with surrounding context
* Hex dump of the matched bytes

<img src="https://mintcdn.com/binarly-bee2cf27/hc0cag9OdCmP7iBd/assets/screenshots/rules/rules3.png?fit=max&auto=format&n=hc0cag9OdCmP7iBd&q=85&s=5b83904716d238cf7b6871052d158317" alt="" width="1789" height="898" data-path="assets/screenshots/rules/rules3.png" />

Scan results in the Playground are temporary. They are not added to the product findings and are not visible to anyone else. To generate persistent findings, [deploy the Ruleset](/user-guides/rule-management/deployments).

<Note>
  You can only select images from products your account has permission to access.
</Note>
