What This Tool Detects
| # | Technique | Detects | Decodes? |
|---|---|---|---|
| 1 | Short identifiers | a, b, _0x, _x0 | ✅ Flags for review |
| 2 | Hex-escaped strings | \x48\x65\x6c\x6c\x6f and []byte{0x48,0x65,...} | ✅ Fully decoded |
| 3 | Base64 strings | base64.StdEncoding.DecodeString("...") | ✅ Fully decoded |
| 4 | XOR ciphers | byte slice ^ key in loops | ⚠️ Flagged (needs runtime) |
| 5 | Unicode escapes | \u0041\u0042 | ✅ Fully decoded |
| 6 | Numeric literals | 0xFF, 0o77, 0b1010 | ✅ Converted to decimal |
| 7 | String concatenation | strings.Join / fragmented strings | ✅ Reconstructed |
| ★ | CodesTerra decoder | RANDOMFN("hex", "key") + XOR function | ✅ Fully decoded + removed |
Confidence Scoring
Each detection gets a confidence score from 1–5:
- 5 (Very High) — decoded content contains readable text (URLs, meaningful strings)
- 4 (High) — successful Base64/hex decode, clear numeric obfuscation
- 3 (Medium) — short identifiers, string concatenation patterns
- 2 (Low) — XOR patterns needing runtime execution
- 1 (Very Low) — ambiguous indicators
CodesTerra Go Obfuscator Support
In addition to the 7 standard detectors, this tool fully reverses CodesTerra Go Obfuscator output:
- Detects the randomly-named XOR+hex decoder function by structure
- Detects the
hexValhelper function - Decodes every
RANDOMFN("hex", "key")call back to plaintext - Removes both functions and the banner comment
- Removes the now-unused
encoding/heximport
What It Cannot Do
- Decrypt AES/DES-encrypted strings — needs the key
- Deobfuscate garble binaries — use GoReSym / GoResolver
- Recover original variable names — renaming is lossy
- Decrypt XOR with a dynamically-built key — needs runtime execution
- Handle commercial obfuscators — gobfuscate and similar
Frequently Asked Questions
What does this tool detect?
7 obfuscation patterns: short identifiers, hex-escaped strings, Base64 strings, XOR ciphers, Unicode escapes, obfuscated numeric literals, and string concatenation. Plus it fully decodes CodesTerra Go Obfuscator output.
How does it decode hex-escaped strings?
It scans for Go string literals containing
\xXX sequences and []byte{0x...} literals, extracts the bytes, and converts them to readable text. E.g. \x48\x65\x6c\x6c\x6f → Hello.Can it decrypt Base64 strings?
Yes, for
base64.StdEncoding.DecodeString("...") calls. It extracts the Base64 content and decodes it using the browser's atob().Why are XOR patterns only "flagged"?
XOR patterns often use a key that's defined elsewhere in the code or built dynamically. Without executing the code in a Go runtime, the key can't be reliably extracted. The tool flags them for manual review.
What about CodesTerra Go Obfuscator?
This tool also fully reverses CodesTerra output. It detects the XOR+hex decoder function (regardless of its random name), decodes every encoded string call, removes both functions, and strips the banner.
What is confidence scoring?
Each detection gets a score from 1–5. Higher scores mean the tool is more certain the pattern is real obfuscation and not legitimate code. Score 5 means decoded content is clearly readable (URLs, meaningful strings).
Is my code uploaded?
No. Everything runs in your browser. Your Go code never leaves your device.
Can it analyze compiled Go binaries?
No. This tool works on Go source code, not compiled binaries. For binary analysis, use the Go Binary Analyzer.
Related Tools
Go ObfuscatorObfuscate Go source
Go Binary AnalyzerAnalyze compiled binaries
PHP DeobfuscatorDecode PHP obfuscation
HTML DeobfuscatorDecode obfuscated HTML