Learn by doing.
Code & Infrastructure.

Between infrastructure and code, I keep notes on what I learn and try.

  • Cloud / Infrastructure / Automation focused
  • Small experiments and lessons learned
  • Hope this helps someone

# Today's Log

Using AI Penetration Testing on my Custom WAF to Uncover Unprotected and Unmitigated Vulnerabilities

resource "aws_s3_bucket" "example" {
  bucket = "hiroe-tech-notes"
  acl    = "private"
  tags = {
    Name = "hiroe-tech-notes-bucket"
  }
}

# Memo: Enable versioning too
# → Continues in articles...

Continue to articles →
The Problem of OpenCode Skills Not Invoking Sub-agents Trying OpenCode with Docker Sandboxes AI OpenCode Trying Out OpenCode's Skills OpenCode AIAgent
View all articles →

Latest Posts Recently published articles

Using AI Penetration Testing on my Custom WAF to Uncover Unprotected and Unmitigated Vulnerabilities

ShannonVsKunato_60percent

Verifying the defensive capabilities of my custom WAF and uncovering vulnerabilities using the AI tool Shannon.

#Kunato ◷ 165min

Can Nginx Vulnerabilities (nginx2shell) Be Prevented by ALB/WAF?

Nginx Vulnerability and ALB_WAF Defense Comparison Infographic

Nginx 10 vulnerabilities, 5 RCE. ALB/WAF block 8 via protocol termination, 2 remain.

#Nginx ◷ 195min

The Story of My Windows C Drive Being Occupied by Rust Build Caches

disk cleanup

My Windows C drive was full of Rust build caches. I deleted WSL files and Docker caches, saving storage space.

#Windows ◷ 120min

Now able to display 'Under Maintenance' page in Kunato

Screen shot 2026-11-08 001116

Display 'Under Maintenance' page in Kunato. Toggle on/off with commands to save time during site launches.

#Operations ◷ 30min

Summary of Security Measures to Take for a Home Server

Secure SSH Management with Cloudflare Tunnel

Home server security measures: SSH management with Cloudflare/TailScale, UFW firewall, SSH configuration changes, and automatic updates.

#Cloudflare ◷ 105min

Securing SSH Private Keys with TPM to Prevent Leaks

Safe SSH Authentication with nCryptAgent

Storing SSH private keys in TPM to prevent leakage, managed via nCryptAgent for enhanced security.

#SSH ◷ 60min

Automate Security Updates and Reboots on Ubuntu 26.04 LTS

sudo apt-get update
sudo apt-get install -y unattended-upgrades update-notifier-common

Automate daily security updates and set automatic reboot at 4 AM on Ubuntu 26.04 LTS. Dependent on timezone.

#Ubuntu ◷ 60min

Try Encrypting and Decrypting Strings with TPM from PowerShell

TPM and Encryption Key

Encrypting and Decrypting with TPM in PowerShell. Store the private key in TPM for secure processing.

#Security ◷ 90min

Mitigation for Linux TCP Vulnerability (CVE-2026-98432)

Ubuntu Security Defense Battle

Linux TCP vulnerability CVE-2026-98432 affects Ubuntu and Red Hat.

#Ubuntu ◷ 150min

Added functionality to Kunato WAF to block Apache/Nginx default pages and file listings

kunato-response-block

Added Apache/Nginx default page and file listing blocking functionality to Kunato WAF. Scans server responses and returns 403.

#Security ◷ 30min

Docker Sandboxes + OpenCode environment when disk space runs out

df -h

4.0K    /boot
4.0K    /media
8.0K    /.rock
5.7M    /etc
75M     /var
435M    /opt
3.6G    /usr
4.1G    /home
4.2G    /tmp
13G     /

Troubleshooting disk space issues in Docker Sandboxes. Check with df -h, clear npm cache, use du to analyze directories, and be aware of hidden files.

#OpenCode ◷ 15min

Writing a WAF in Rust

KunatoFlow

Kunato is a small WAF built in Rust with features including reverse proxy, automatic TLS certificate management, CVE-based rule updates, and simple installation.

#WAF ◷ 105min

Real-time Edit Reflection and Diff Display with Emacs

4ca4d3d8-9cd0-43f8-973f-4202eb30f07f

Trying to implement real-time editing and diff display with Emacs, using WezTerm for screen splitting and CUI environment for agent commands.

#AI Development ◷ 60min

Connecting OpenCode with Cloudflare to Access from Outside for Progress Checks and Instructions

d1b8426e-1ad5-4d22-a05a-e42008e26d99

Making the home PC accessible from outside securely with OpenCode and Cloudflare, enabling progress checks and instructions.

#OpenCode ◷ 210min

Trying Out Muse Spark 1.3 on OpenCode

ChatGPT Image 2026年9月6日 18_02_20

Muse Spark 1.3 is cheap and high-performance but requires privacy considerations.

#Infrastructure ◷ 75min

ChatGPT's Container Told Me Various Things

IMG_7117

Confirmed ChatGPT's sandbox environment and Docker existence through command execution. Verified its authenticity through hash checks.

#ChatGPT ◷ 30min

Enable Ruby in Docker Sandboxes

$ sbx ls

To install Ruby in Docker Sandboxes, install libraries with rbenv and set environment variables.

#Infrastructure ◷ 45min

Starting Docker Sandboxes with Specified Memory and CPU

$ sbx run opencode -m 20g -cpus 10

When running AI tools with Docker Sandboxes, you can specify CPU and memory. Default is 50% of host memory and all CPUs. Example: 'sbx run ... -m 20g -cpus 10'.

#Infrastructure ◷ 30min

Trying OpenCode with Docker Sandboxes

curl -fsSL https://get.docker.com | sudo REPO_ONLY=1 sh
sudo apt-get install docker-sbx

Tried OpenCode with Docker Sandboxes. Network permissions and settings are required, and after troubleshooting, confirmed operation.

#AI ◷ 120min

The Problem of OpenCode Skills Not Invoking Sub-agents

Screenshot 2026-07-26 221429

Solved the sub-agent automatic call issue with manual specification, improving implementation efficiency and cost reduction.

#AI Development ◷ 75min

Enabling AI Agents to Develop While Confirming Browser Displays in a WSL + OpenCode Environment

npx playwright install chromium

Enable AI agents to confirm browser displays in WSL and OpenCode environments. Automate UI verification using Playwright's headless browser.

#OpenCode ◷ 120min
View all articles →