<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/rss.xsl" type="text/xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Feed | Moskic</title><description>Project, notes, links, and thoughts from my corner of the internet</description><link>http://feed.moskic.com</link><item><title>A development approach that feels especially well suited for M5Stack + AI coding: add an SDL-based PC simulator and use it as the AI’s temporary “eyes” during development.Why is SDL a particularly good fit for M5Stack?Because M5GFX already has native SDL support. Instead of building and maintaining a completely separate fake UI, the same M5GFX-based drawing code can be rendered either to the real device display or to an SDL window on a PC.In practice:Same UI code → M5GFX → Real LCDDuring development:Same UI code → M5GFX → SDL window on PCThis is very useful for AI-assisted development. Instead of guessing what the device screen will look like from source code alone, the AI can run the PC version, inspect the rendered result, and iteratively adjust fonts, spacing, buttons, menus, and layout before doing the final test on real hardware.I prefer treating the SDL simulator as disposable development scaffolding:• UI and application logic are shared with the real device• SDL is only used for development and AI visualization• SDL-specific code lives under something like devtools/simulator• Production firmware has no dependency on SDL• The simulator uses a separate build target• The entire simulator directory can be deleted without affecting the real M5 firmwareA prompt I use for coding agents is:When developing an M5Stack project, use M5GFX’s native SDL support to create a PC-side display simulator as disposable development scaffolding. The simulator should reuse the real device’s M5GFX UI and application logic rather than maintaining a second UI implementation. Configure the appropriate screen resolution, rotation, and input mappings for the target device. Keep all SDL-specific code inside an isolated directory such as devtools/simulator and use a separate build target. Production firmware must not depend on SDL. Deleting the entire simulator directory must not prevent the real M5 firmware from building and running independently.I think this is a very natural pattern for embedded development in the AI era:Instead of adding video output to the device, use M5GFX + SDL during development to give the AI a virtual screen it can actually see.</title><link>http://feed.moskic.com/posts/17</link><guid isPermaLink="true">http://feed.moskic.com/posts/17</guid><pubDate>Mon, 24 Aug 2026 04:08:53 GMT</pubDate><content:encoded>A development approach that feels especially well suited for &lt;b&gt;M5Stack + AI coding&lt;/b&gt;: add an &lt;b&gt;SDL-based PC simulator&lt;/b&gt; and use it as the AI’s temporary “eyes” during development.&lt;br /&gt;&lt;br /&gt;Why is SDL a particularly good fit for M5Stack?&lt;br /&gt;&lt;br /&gt;Because &lt;b&gt;M5GFX already has native SDL support&lt;/b&gt;. Instead of building and maintaining a completely separate fake UI, the same M5GFX-based drawing code can be rendered either to the real device display or to an SDL window on a PC.&lt;br /&gt;&lt;br /&gt;In practice:&lt;br /&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Same UI code → M5GFX → Real LCD&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;During development:&lt;br /&gt;&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Same UI code → M5GFX → SDL window on PC&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This is very useful for AI-assisted development. Instead of guessing what the device screen will look like from source code alone, the AI can run the PC version, inspect the rendered result, and iteratively adjust fonts, spacing, buttons, menus, and layout before doing the final test on real hardware.&lt;br /&gt;&lt;br /&gt;I prefer treating the SDL simulator as &lt;b&gt;disposable development scaffolding&lt;/b&gt;:&lt;br /&gt;• UI and application logic are shared with the real device&lt;br /&gt;• SDL is only used for development and AI visualization&lt;br /&gt;• SDL-specific code lives under something like devtools/simulator&lt;br /&gt;• Production firmware has no dependency on SDL&lt;br /&gt;• The simulator uses a separate build target&lt;br /&gt;• The entire simulator directory can be deleted without affecting the real M5 firmware&lt;br /&gt;&lt;br /&gt;A prompt I use for coding agents is:&lt;br /&gt;&lt;blockquote&gt;When developing an M5Stack project, use M5GFX’s native SDL support to create a PC-side display simulator as disposable development scaffolding. The simulator should reuse the real device’s M5GFX UI and application logic rather than maintaining a second UI implementation. Configure the appropriate screen resolution, rotation, and input mappings for the target device. Keep all SDL-specific code inside an isolated directory such as devtools/simulator and use a separate build target. Production firmware must not depend on SDL. Deleting the entire simulator directory must not prevent the real M5 firmware from building and running independently.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I think this is a very natural pattern for embedded development in the AI era:&lt;br /&gt;&lt;b&gt;Instead of adding video output to the device, use M5GFX + SDL during development to give the AI a virtual screen it can actually see.&lt;/b&gt;</content:encoded></item><item><title>🖥 Gave my years-old Ryzen 7 5800X + ASUS C8H a little PBO tuning:PBO Limits: 142W PPT / 95A TDC / 140A EDCCurve Optimizer: All-core -5Scalar: AutoBoost Override: DisabledCinebench R23: 14,894~4.59 GHz effective all-core, ~81°C under load.Basically keeping stock-like power limits while using a mild negative CO to improve efficiency and boost behavior.</title><link>http://feed.moskic.com/posts/16</link><guid isPermaLink="true">http://feed.moskic.com/posts/16</guid><pubDate>Sun, 23 Aug 2026 03:42:40 GMT</pubDate><content:encoded>&lt;i class=&quot;emoji&quot;&gt;&lt;b&gt;🖥&lt;/b&gt;&lt;/i&gt; Gave my years-old Ryzen 7 5800X + ASUS C8H a little PBO tuning:&lt;br /&gt;&lt;br /&gt;PBO Limits: 142W PPT / 95A TDC / 140A EDC&lt;br /&gt;Curve Optimizer: All-core -5&lt;br /&gt;Scalar: Auto&lt;br /&gt;Boost Override: Disabled&lt;br /&gt;&lt;br /&gt;Cinebench R23: 14,894&lt;br /&gt;~4.59 GHz effective all-core, ~81°C under load.&lt;br /&gt;&lt;br /&gt;Basically keeping stock-like power limits while using a mild negative CO to improve efficiency and boost behavior.</content:encoded></item><item><title>Switched my status pages form Uptime Kuma to Kener. It&apos;s minimal and customizable. Recommended!</title><link>http://feed.moskic.com/posts/12</link><guid isPermaLink="true">http://feed.moskic.com/posts/12</guid><pubDate>Mon, 27 Jul 2026 08:41:36 GMT</pubDate><content:encoded>Switched my status pages form Uptime Kuma to Kener. It&apos;s minimal and customizable. Recommended!&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://github.com/rajnandan1/kener&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;https://github.com/rajnandan1/kener&quot;&gt;https://github.com/rajnandan1/kener&lt;/a&gt;&lt;a class=&quot;tgme_widget_message_link_preview&quot; href=&quot;https://github.com/rajnandan1/kener&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;Stunning status pages, batteries included! Contribute to rajnandan1/kener development by creating an account on GitHub.&quot;&gt;
  
  &lt;div class=&quot;link_preview_site_name accent_color&quot;&gt;GitHub&lt;/div&gt;
  &lt;img class=&quot;link_preview_image&quot; alt=&quot;GitHub - rajnandan1/kener: Stunning status pages, batteries included!&quot; src=&quot;/static/https://cdn4.telesco.pe/file/cJKvTORdwzRG9RQag8hJSdQ0Q-UIorAXn_3Ljx7Z5ktImjzC5Zr8k77aOimHESjllC-CRUfJ0QpsWf2YUAX5O49a_LgXtDINpmQub9K5j6759sHDATijOi26O4Clp_qg0ZvxmOmj5JaC4doltEpkfTEDN3kjy_E1Oc1B1HbY1WOEzYxdYhjLO4OJ2JR5etuA45THt4rvVloOGvPdOeQBSv8cS4il10B7YXOWth9lZiYVf9w72oiqMTp3vIyZbdfMTNYxn-e-XUeSEmIyrgnBryG5uNNkfI0ngM87Zwz1amoiuXfphRoSImFixB-SsAnDkOOeVOnblFOHwPvJfdVgxg.jpg&quot; width=&quot;1200&quot; height=&quot;630&quot; loading=&quot;eager&quot; /&gt;
  &lt;div class=&quot;link_preview_title&quot;&gt;GitHub - rajnandan1/kener: Stunning status pages, batteries included!&lt;/div&gt;
  &lt;div class=&quot;link_preview_description&quot;&gt;Stunning status pages, batteries included! Contribute to rajnandan1/kener development by creating an account on GitHub.&lt;/div&gt;
&lt;/a&gt;</content:encoded></item><item><title>If you are looking to run a Tailscale service in your FNOS NAS, here is a docker-compose file might help you:services:  tailscale:    # Official Tailscale Docker image.    image: tailscale/tailscale:latest    # Docker container name. This is only used by Docker.    container_name: tailscale    # Hostname inside the container.    # This may be used as a reference name, but TS_HOSTNAME below is more explicit for Tailscale.    hostname: tailscale-docker    # Use the host network stack.    # This is recommended when using Tailscale as an exit node or when you want the host itself    # to be reachable through Tailscale.    network_mode: host    # Required network capabilities for kernel-mode Tailscale networking.    # NET_ADMIN allows Tailscale to configure routes, interfaces, and firewall rules.    # NET_RAW allows low-level network packet handling.    cap_add:      - NET_ADMIN      - NET_RAW    environment:      # Tailscale auth key.      # Replace this with your own key.      # Do NOT share your real auth key publicly.      - TS_AUTHKEY=YOUR_TAILSCALE_AUTH_KEY_HERE      # Directory where Tailscale stores its state.      # This keeps the node identity persistent across container restarts.      - TS_STATE_DIR=/var/lib/tailscale      # Disable userspace networking and use kernel networking instead.      # This requires /dev/net/tun and the network capabilities above.      # Recommended for exit node usage.      - TS_USERSPACE=false      # Authenticate only once when the state directory already contains valid Tailscale state.      # This prevents the container from re-authenticating on every restart.      - TS_AUTH_ONCE=true      # Advertise this NAS/server as a Tailscale exit node.      # --netfilter-mode=on allows Tailscale to manage firewall/NAT rules automatically.      # This is important for routing client internet traffic through this machine.      - TS_EXTRA_ARGS=--advertise-exit-node --netfilter-mode=on      # Display name shown in the Tailscale admin console and clients.      # Change this to a name that helps you identify the device.      - TS_HOSTNAME=my-nas-exit-node      # Let Tailscale automatically select the correct Linux firewall backend.      # Useful on systems using nftables instead of legacy iptables.      - TS_DEBUG_FIREWALL_MODE=auto    volumes:      # Persist Tailscale state on the host.      # Replace the left side with your own host directory.      # Example: /vol1/1000/docker/tailscale:/var/lib/tailscale      - /path/to/tailscale/state:/var/lib/tailscale    devices:      # Expose the host TUN device to the container.      # Required for kernel-mode VPN networking.      - /dev/net/tun:/dev/net/tun    # Restart the container automatically unless it was manually stopped.    # This makes Tailscale start again after NAS/server reboot.    restart: unless-stopped</title><link>http://feed.moskic.com/posts/10</link><guid isPermaLink="true">http://feed.moskic.com/posts/10</guid><pubDate>Fri, 03 Jul 2026 11:03:14 GMT</pubDate><content:encoded>If you are looking to run a Tailscale service in your FNOS NAS, here is a docker-compose file might help you:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;services:&lt;br /&gt;  tailscale:&lt;br /&gt;    # Official Tailscale Docker image.&lt;br /&gt;    image: tailscale/tailscale:latest&lt;br /&gt;&lt;br /&gt;    # Docker container name. This is only used by Docker.&lt;br /&gt;    container_name: tailscale&lt;br /&gt;&lt;br /&gt;    # Hostname inside the container.&lt;br /&gt;    # This may be used as a reference name, but TS_HOSTNAME below is more explicit for Tailscale.&lt;br /&gt;    hostname: tailscale-docker&lt;br /&gt;&lt;br /&gt;    # Use the host network stack.&lt;br /&gt;    # This is recommended when using Tailscale as an exit node or when you want the host itself&lt;br /&gt;    # to be reachable through Tailscale.&lt;br /&gt;    network_mode: host&lt;br /&gt;&lt;br /&gt;    # Required network capabilities for kernel-mode Tailscale networking.&lt;br /&gt;    # NET_ADMIN allows Tailscale to configure routes, interfaces, and firewall rules.&lt;br /&gt;    # NET_RAW allows low-level network packet handling.&lt;br /&gt;    cap_add:&lt;br /&gt;      - NET_ADMIN&lt;br /&gt;      - NET_RAW&lt;br /&gt;&lt;br /&gt;    environment:&lt;br /&gt;      # Tailscale auth key.&lt;br /&gt;      # Replace this with your own key.&lt;br /&gt;      # Do NOT share your real auth key publicly.&lt;br /&gt;      - TS_AUTHKEY=YOUR_TAILSCALE_AUTH_KEY_HERE&lt;br /&gt;&lt;br /&gt;      # Directory where Tailscale stores its state.&lt;br /&gt;      # This keeps the node identity persistent across container restarts.&lt;br /&gt;      - TS_STATE_DIR=/var/lib/tailscale&lt;br /&gt;&lt;br /&gt;      # Disable userspace networking and use kernel networking instead.&lt;br /&gt;      # This requires /dev/net/tun and the network capabilities above.&lt;br /&gt;      # Recommended for exit node usage.&lt;br /&gt;      - TS_USERSPACE=false&lt;br /&gt;&lt;br /&gt;      # Authenticate only once when the state directory already contains valid Tailscale state.&lt;br /&gt;      # This prevents the container from re-authenticating on every restart.&lt;br /&gt;      - TS_AUTH_ONCE=true&lt;br /&gt;&lt;br /&gt;      # Advertise this NAS/server as a Tailscale exit node.&lt;br /&gt;      # --netfilter-mode=on allows Tailscale to manage firewall/NAT rules automatically.&lt;br /&gt;      # This is important for routing client internet traffic through this machine.&lt;br /&gt;      - TS_EXTRA_ARGS=--advertise-exit-node --netfilter-mode=on&lt;br /&gt;&lt;br /&gt;      # Display name shown in the Tailscale admin console and clients.&lt;br /&gt;      # Change this to a name that helps you identify the device.&lt;br /&gt;      - TS_HOSTNAME=my-nas-exit-node&lt;br /&gt;&lt;br /&gt;      # Let Tailscale automatically select the correct Linux firewall backend.&lt;br /&gt;      # Useful on systems using nftables instead of legacy iptables.&lt;br /&gt;      - TS_DEBUG_FIREWALL_MODE=auto&lt;br /&gt;&lt;br /&gt;    volumes:&lt;br /&gt;      # Persist Tailscale state on the host.&lt;br /&gt;      # Replace the left side with your own host directory.&lt;br /&gt;      # Example: /vol1/1000/docker/tailscale:/var/lib/tailscale&lt;br /&gt;      - /path/to/tailscale/state:/var/lib/tailscale&lt;br /&gt;&lt;br /&gt;    devices:&lt;br /&gt;      # Expose the host TUN device to the container.&lt;br /&gt;      # Required for kernel-mode VPN networking.&lt;br /&gt;      - /dev/net/tun:/dev/net/tun&lt;br /&gt;&lt;br /&gt;    # Restart the container automatically unless it was manually stopped.&lt;br /&gt;    # This makes Tailscale start again after NAS/server reboot.&lt;br /&gt;    restart: unless-stopped&lt;/blockquote&gt;</content:encoded></item><item><title>In the civilian sector, AI’s siphoning effect has not only kicked Moore’s Law clear beyond the Three Realms, but has also created the myth of desktop PCs retaining over 100% of their value. Truly terrifying😂</title><link>http://feed.moskic.com/posts/9</link><guid isPermaLink="true">http://feed.moskic.com/posts/9</guid><pubDate>Thu, 25 Jun 2026 10:13:58 GMT</pubDate><content:encoded>In the civilian sector, AI’s siphoning effect has not only kicked Moore’s Law clear beyond the Three Realms, but has also created the myth of desktop PCs retaining over 100% of their value. Truly terrifying&lt;i class=&quot;emoji&quot;&gt;&lt;b&gt;😂&lt;/b&gt;&lt;/i&gt;</content:encoded></item><item><title>Because of the continuous background noise of Cardputer ADV, I really don&apos;t know what caused these problems. I have done a series of extreme modifications to my firmware and done the following four tests:1. I pushed the high-pass filter all the way up to 1000 Hz, but the noise was still there. This suggests it was not low-frequency rumble or DC offset.2. I disabled the app-level recording gain and soft compression by switching to Raw Capture. The noise was still there, so it was not caused by my own 2x PCM gain amplifying the noise.3. I lowered M5Unified&apos;s mic magnification from the default 16 down to 1. The recording became much quieter overall, so the setting was definitely taking effect, but the noise was still audible. That means the issue was not simply excessive mic software gain.4. I copied the recorded WAV files to a computer and played them there. The noise was still present, so it was not coming from the Cardputer&apos;s speaker or playback chain.Taken together, these tests basically rule out the high-pass filter settings, app-level gain, playback chain, and simple mic magnification as the main cause.In other words, this looks more like a hardware/input-chain noise issue than something caused by the recorder&apos;s software processing.</title><link>http://feed.moskic.com/posts/8</link><guid isPermaLink="true">http://feed.moskic.com/posts/8</guid><pubDate>Wed, 24 Jun 2026 02:07:03 GMT</pubDate><content:encoded>Because of the continuous background noise of Cardputer ADV, I really don&apos;t know what caused these problems. I have done a series of extreme modifications to my firmware and done the following four tests:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;1. I pushed the high-pass filter all the way up to 1000 Hz, but the noise was still there. This suggests it was not low-frequency rumble or DC offset.&lt;br /&gt;&lt;br /&gt;2. I disabled the app-level recording gain and soft compression by switching to Raw Capture. The noise was still there, so it was not caused by my own 2x PCM gain amplifying the noise.&lt;br /&gt;&lt;br /&gt;3. I lowered M5Unified&apos;s mic magnification from the default 16 down to 1. The recording became much quieter overall, so the setting was definitely taking effect, but the noise was still audible. That means the issue was not simply excessive mic software gain.&lt;br /&gt;&lt;br /&gt;4. I copied the recorded WAV files to a computer and played them there. The noise was still present, so it was not coming from the Cardputer&apos;s speaker or playback chain.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Taken together, these tests basically rule out the high-pass filter settings, app-level gain, playback chain, and simple mic magnification as the main cause.&lt;br /&gt;&lt;br /&gt;In other words, this looks more like a hardware/input-chain noise issue than something caused by the recorder&apos;s software processing.</content:encoded></item><item><title>Recently I’ve been learning ESP32 development and made a voice recorder firmware that runs on the Cardputer ADV. Maybe it’s the most powerful recorder firmware for the Cardputer ADV? （Since nobody else seems to have made one XD）</title><link>http://feed.moskic.com/posts/7</link><guid isPermaLink="true">http://feed.moskic.com/posts/7</guid><pubDate>Fri, 19 Jun 2026 11:57:23 GMT</pubDate><content:encoded>Recently I’ve been learning ESP32 development and made a voice recorder firmware that runs on the Cardputer ADV. Maybe it’s the most powerful recorder firmware for the Cardputer ADV?&lt;label class=&quot;spoiler-button&quot;&gt;&lt;input type=&quot;checkbox&quot; aria-label=&quot;Toggle spoiler&quot; aria-controls=&quot;spoiler-4-0&quot; /&gt;&lt;tg-spoiler id=&quot;spoiler-4-0&quot;&gt; （Since nobody else seems to have made one XD）&lt;/tg-spoiler&gt;&lt;/label&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://github.com/Moskic/cardputer-adv-recorder&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;https://github.com/Moskic/cardputer-adv-recorder&quot;&gt;https://github.com/Moskic/cardputer-adv-recorder&lt;/a&gt;&lt;a class=&quot;tgme_widget_message_link_preview&quot; href=&quot;https://github.com/Moskic/cardputer-adv-recorder&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;A voice recorder and WAV player firmware for the M5Stack Cardputer ADV - Moskic/cardputer-adv-recorder&quot;&gt;
  
  &lt;div class=&quot;link_preview_site_name accent_color&quot;&gt;GitHub&lt;/div&gt;
  &lt;img class=&quot;link_preview_image&quot; alt=&quot;GitHub - Moskic/cardputer-adv-recorder: A voice recorder and WAV player firmware for the M5Stack Cardputer ADV&quot; src=&quot;/static/https://cdn4.telesco.pe/file/JHbY7n3Ixbiz3QKEScT2y9jQjLv4vk7-jwQUHe4or7bkgjPC2Dw2fblOv8NwNrps-PCoNeRT2Ojcux24Q4MGRhZesUP4JAZnie237PNSM8Rd63kDiVA_y4GsiiA3RbfjJgh57s3Oqo24GlC_sODbCY3MuImpKTEdGSMb-s5jXAxowLJaiM-b88zzfBoiIs3vc5WuqXAhv94v1282sXHTOHsKubimf1qqPwNeMOJyK2zQj9l1PTPhmvLF72X2dYmB-dtJiS-lnOBzp_4_bfGvumjoupYKVQPv5F_OsgVVbRUseGoeTKWcC7JmAgugigQXECul7n8zF-8SKrxL1KTTwA.jpg&quot; width=&quot;1200&quot; height=&quot;630&quot; loading=&quot;eager&quot; /&gt;
  &lt;div class=&quot;link_preview_title&quot;&gt;GitHub - Moskic/cardputer-adv-recorder: A voice recorder and WAV player firmware for the M5Stack Cardputer ADV&lt;/div&gt;
  &lt;div class=&quot;link_preview_description&quot;&gt;A voice recorder and WAV player firmware for the M5Stack Cardputer ADV - Moskic/cardputer-adv-recorder&lt;/div&gt;
&lt;/a&gt;</content:encoded></item><item><title>My global guidance for Codex: LinkInspired by andrej-karpathy-skills</title><link>http://feed.moskic.com/posts/6</link><guid isPermaLink="true">http://feed.moskic.com/posts/6</guid><pubDate>Wed, 17 Jun 2026 08:50:32 GMT</pubDate><content:encoded>My &lt;b&gt;global guidance&lt;/b&gt; for Codex: &lt;a href=&quot;https://raw.githubusercontent.com/Moskic/scripts/main/Codex/AGENTS.md&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;Link&quot;&gt;&lt;b&gt;Link&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Inspired by &lt;a href=&quot;https://github.com/multica-ai/andrej-karpathy-skills&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;andrej-karpathy-skills&quot;&gt;andrej-karpathy-skills&lt;/a&gt;</content:encoded></item><item><title>I recently handled a security incident involving an old Nezha Dashboard instance.The root cause was a critical Nezha vulnerability: GHSA-5c25-7vpj-9mqh. My dashboard was running v2.0.7, which was affected.Attack flow:1. Attacker accessed:/dashboard../data/config.yaml2. Dashboard config was exposed3. JWT / agent secrets were leaked4. Attacker forged admin access5. Malicious cron jobs were created through Nezha6. All connected agents started scanning servers for secrets7. Results were sent to external webhook endpointsSuspicious commands looked like:grep -rn &apos;AKIA|sk-ant|sk-proj|AIzaSy|github_pat_&apos; /root /home /opt /etc /app /var /data /tmpcurl </title><link>http://feed.moskic.com/posts/4</link><guid isPermaLink="true">http://feed.moskic.com/posts/4</guid><pubDate>Tue, 16 Jun 2026 01:10:13 GMT</pubDate><content:encoded>I recently handled a security incident involving an old Nezha Dashboard instance.&lt;br /&gt;&lt;br /&gt;The root cause was a critical Nezha vulnerability: &lt;a href=&quot;https://github.com/nezhahq/nezha/security/advisories/GHSA-5c25-7vpj-9mqh&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;GHSA-5c25-7vpj-9mqh&quot;&gt;GHSA-5c25-7vpj-9mqh&lt;/a&gt;. My dashboard was running v2.0.7, which was affected.&lt;br /&gt;&lt;br /&gt;Attack flow:&lt;br /&gt;&lt;blockquote&gt;1. Attacker accessed:&lt;code&gt;&lt;br /&gt;/dashboard../data/config.yaml&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;2. Dashboard config was exposed&lt;br /&gt;&lt;br /&gt;3. JWT / agent secrets were leaked&lt;br /&gt;&lt;br /&gt;4. Attacker forged admin access&lt;br /&gt;&lt;br /&gt;5. Malicious cron jobs were created through Nezha&lt;br /&gt;&lt;br /&gt;6. All connected agents started scanning servers for secrets&lt;br /&gt;&lt;br /&gt;7. Results were sent to external webhook endpoints&lt;br /&gt;&lt;br /&gt;Suspicious commands looked like:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;grep -rn &apos;AKIA|sk-ant|sk-proj|AIzaSy|github_pat_&apos; /root /home /opt /etc /app /var /data /tmp&lt;br /&gt;&lt;br /&gt;curl http://169.254.169.254/...&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Impact:&lt;br /&gt;&lt;blockquote&gt;• Nezha JWT and agent secrets should be considered leaked  &lt;br /&gt;• All connected nodes should be treated as exposed  &lt;br /&gt;• Any API keys, cloud credentials, SSH keys, TLS keys, or tokens on those servers should be rotated  &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Recommendations:&lt;br /&gt;&lt;blockquote&gt;• Upgrade Nezha immediately, at least to v2.0.13+  &lt;br /&gt;• Stop all old agents  &lt;br /&gt;• Re-register every node with new secrets  &lt;br /&gt;• Do not reuse old config.yaml, SQLite DB, agent secret, or UUIDs  &lt;br /&gt;• Do not expose the dashboard directly to the public Internet  &lt;br /&gt;• Rotate passwords, SSH keys, API tokens, and TLS certificates  &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Lesson learned:&lt;br /&gt;&lt;br /&gt;A monitoring dashboard with remote command execution is not “just a dashboard”. Treat it like critical infrastructure.&lt;a class=&quot;tgme_widget_message_link_preview&quot; href=&quot;https://github.com/nezhahq/nezha/security/advisories/GHSA-5c25-7vpj-9mqh&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;### Summary `fallbackToFrontend` in the dashboard&apos;s `NoRoute` handler treats any URL whose **raw string** starts with `/dashboard` as an admin-frontend asset request. The check uses `strings.H...&quot;&gt;
  
  &lt;div class=&quot;link_preview_site_name accent_color&quot;&gt;GitHub&lt;/div&gt;
  &lt;img class=&quot;link_preview_image&quot; alt=&quot;Pre-auth path traversal via /dashboard.. prefix confusion leaks jwt_secret_key&quot; src=&quot;/static/https://cdn4.telesco.pe/file/n_vdakenW5f7tJDWlgcDU7u5fB1Z9N7B5GdFnIUMqZ-mXU0C30Btl_t4xDQ4YV-YMI8Jxc5fvxNCDp8dP_JZEaQpePpRI6aeOyv0eUP2FMaP3gMhB_oi_humta2iFbicf42RRFETteIHBXGYfBrZ1ngkZTUBXrCEHejZojrfRKtjZmBfEU2iBE13QaP-Pt9tX1t6u7kKzvsxNhT4HSQVHX3jZJ7Ya4i75GEKBNyyblkU39nTD9WVYlhBNmJT_SL-YBRCOwxaMzi3p2mKq_HSObrrTpkLH7-ojrb_taDqES7EL-3p6JPMcvE-a_wTp9XSQxjkKRc-MLzUWvyciVBv-A.jpg&quot; width=&quot;1200&quot; height=&quot;630&quot; loading=&quot;eager&quot; /&gt;
  &lt;div class=&quot;link_preview_title&quot;&gt;Pre-auth path traversal via /dashboard.. prefix confusion leaks jwt_secret_key&lt;/div&gt;
  &lt;div class=&quot;link_preview_description&quot;&gt;### Summary &lt;br /&gt;`fallbackToFrontend` in the dashboard&apos;s `NoRoute` handler treats any URL whose **raw string** starts with `/dashboard` as an admin-frontend asset request. The check uses `strings.H...&lt;/div&gt;
&lt;/a&gt;</content:encoded></item><item><title>Hello World 🌍</title><link>http://feed.moskic.com/posts/2</link><guid isPermaLink="true">http://feed.moskic.com/posts/2</guid><pubDate>Mon, 15 Jun 2026 12:07:22 GMT</pubDate><content:encoded>Hello World &lt;i class=&quot;emoji&quot;&gt;&lt;b&gt;🌍&lt;/b&gt;&lt;/i&gt;</content:encoded></item></channel></rss>