Decode the stored blob and hand it to a fixed script that only writes it to disk — the decoded bytes are data read on stdin, never executed as a program: ```bash gh api "repos/$REPO/contents/$PATH" --jq '.content' \ | base64 -d \ | node -e 'require("fs").writeFileSync("/tmp/out.md", require("fs").readFileSync(0))' ``` A plain decode-to-file is also fine: ```bash echo "$ENCODED" | base64 -d > /tmp/out.bin ``` An inline script after a sudo wrapper still reads the decoded bytes as data: ```bash ...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Warn Base64 Data?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aeonfun-warn-base64-data)
---
name: Warn Base64 Decode Data
---
Decode the stored blob and hand it to a fixed script that only writes it to
disk — the decoded bytes are data read on stdin, never executed as a program:
```bash
gh api "repos/$REPO/contents/$PATH" --jq '.content' \
| base64 -d \
| node -e 'require("fs").writeFileSync("/tmp/out.md", require("fs").readFileSync(0))'
```
A plain decode-to-file is also fine:
```bash
echo "$ENCODED" | base64 -d > /tmp/out.bin
```
An inline script after a sudo wrapper still reads the decoded bytes as data:
```bash
echo "$ENCODED" | base64 -d | sudo -E python3 -c 'import sys; open("/tmp/out.bin", "wb").write(sys.stdin.buffer.read())'
```