# XORSearch & XORStrings

> Didier Stevens' command-line tools that search files for strings hidden with XOR, ROL, ROT, SHIFT or ADD encoding.

Source: https://osinttools.io/tools/xorsearch/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** File
- **Category:** Data analysis and case notes
- **Pricing:** Free
- **Footprint:** passive (does not contact the target)
- **Account required:** no
- **API:** no public API
- **Platforms:** Windows, Linux and macOS CLI
- **Website:** https://blog.didierstevens.com/programs/xorsearch/
- **Listed:** Nov 26
- **Last verified by an editor:** Nov 26, 2026

## What it does

XORSearch looks for a given string in a binary file while trying every key for several simple encodings: XOR (keys 0 to 255), ROL and ROR, ROT, SHIFT and ADD. Malware authors use these to hide strings such as URLs, so searching for "http" across all keys often reveals them. Options add 32-bit XOR keys taken from the file itself, wildcard rules, Unicode and hex search, and detection of embedded PE files.

XORStrings combines the same encodings with the strings command: for every encoding and key it reports how many strings it finds, so the likeliest key stands out. Both are small C programs by Didier Stevens, released into the public domain and compiled for Windows, Linux and macOS.

Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is no public API.

## Features

- Brute force over XOR, ROL/ROR, ROT, SHIFT and ADD keys
- 32-bit XOR keys from embedded data
- Wildcard and rule-based search
- Embedded PE file detection
- XORStrings summary per key with CSV output
- Save decoded files

## Pros

- Fast way to find hidden URLs and strings in malware
- Free, public-domain source
- Runs on Windows, Linux and macOS

## Cons

- Only simple single-byte style encodings, not real encryption
- Command line only
- Downloads have moved off the author's site to GitHub

## When to use it

- Use it when you want to find URLs or file names hidden in a suspicious binary.
- Use it when you need to know which XOR or ROL key a file was encoded with.

## Quick start

1. Open XORSearch & XORStrings.
2. Paste the file and run the lookup.
3. Record the result with the date and the exact query; results change over time.

## Alternatives

- [CyberChef](https://osinttools.io/tools/cyberchef/): GCHQ's in-browser toolkit for decoding, decrypting, converting and parsing data by chaining operations into recipes. (Open source · File · passive · 36,536 GitHub stars)
- [Datasette](https://osinttools.io/tools/datasette/): Open-source tool that turns SQLite databases and CSV files into a browsable, searchable website with a JSON API. (Open source · File · passive · 11,661 GitHub stars)
- [Datawrapper](https://osinttools.io/tools/datawrapper/): Web tool for turning spreadsheets into interactive charts, maps and tables that can be embedded in articles. (Freemium · File · passive)
- [Gephi](https://osinttools.io/tools/gephi/): Open-source desktop app for visualising and measuring networks, with a lighter browser version called Gephi Lite. (Open source · File · passive · 6,708 GitHub stars)
- [Obsidian](https://osinttools.io/tools/obsidian/): Note-taking app built on local Markdown files, with backlinks, a graph view and plugins for organising research. (Freemium · File · passive)
- [QGIS](https://osinttools.io/tools/qgis/): Free open-source desktop GIS for mapping, analysing and combining vector and raster data, extensible with plugins. (Open source · File · passive · 14,887 GitHub stars)

All alternatives to XORSearch & XORStrings in one table: https://osinttools.io/tools/xorsearch/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
