I'm a Security Operations Analyst. I hold the Microsoft SC-200 and ISC2 CC, and I studied Computer Science at UET Lahore. Most of my working day is triage: a token that looks wrong, a PowerShell one-liner that a detection flagged, a subnet plan that someone wants reviewed before a VPC goes live. For years the fastest way to handle those was a search engine and whatever online utility came up first. That habit is the reason I built the LocalSecTools zero-server SecOps workbench.
The SOC and DevOps data leak nobody logs
Think about what actually gets pasted into a "free online JWT decoder". It is rarely a sample token. It is a live Authorization: Bearer value lifted from a proxy log, still inside its validity window, carrying a tenant ID, a user principal name, group claims and sometimes the scopes that unlock production APIs. If that tool posts the token to its backend, a third party now holds a working credential.
The same pattern repeats across the job:
- Obfuscated PowerShell. An
-EncodedCommandblob from an EDR alert often contains internal hostnames, share paths, staging URLs and, in post-exploitation cases, harvested credentials. - Windows Event ID 4625. Failed-logon exports list account names, workstation names, source IPs and logon types. That is a reconnaissance map of your directory.
- VPC CIDR tables. An addressing plan tells an attacker which ranges are production, where the peering links are and how big each tier is.
Most enterprise data-handling policies classify all of this as internal or confidential, and forbid sending it to unapproved processors. A web form with a server behind it is an unapproved processor, whatever its privacy page says. You cannot audit its logs, its retention or its analytics vendor. The only safe design is one where the data never leaves the machine in the first place.
Replacing backend APIs with browser-native Web APIs
Ten years ago a tool like this needed a server because the browser could not do the work. That is no longer true. Every operation I needed maps onto an API that ships in Chromium, Firefox and Safari.
JWT signature verification with crypto.subtle
Decoding a JWT is just Base64URL. Verifying one is the part people think needs a backend. The WebCrypto API handles both HMAC-SHA256 (HS256) and RSASSA-PKCS1-v1_5 with SHA-256 (RS256) natively, and the key material never leaves the page:
const enc = new TextEncoder();
function b64urlToBytes(s: string): Uint8Array {
const b64 = s.replace(/-/g, "+").replace(/_/g, "/");
const padded = b64.padEnd(Math.ceil(b64.length / 4) * 4, "=");
return Uint8Array.from(atob(padded), (c) => c.charCodeAt(0));
}
// HS256: shared secret, HMAC-SHA256
export async function verifyHS256(token: string, secret: string) {
const [header, payload, signature] = token.split(".");
const key = await crypto.subtle.importKey(
"raw", enc.encode(secret),
{ name: "HMAC", hash: "SHA-256" }, false, ["verify"],
);
return crypto.subtle.verify(
"HMAC", key, b64urlToBytes(signature), enc.encode(`${header}.${payload}`),
);
}
// RS256: public key as a JWK (e.g. one entry from the IdP's JWKS)
export async function verifyRS256(token: string, jwk: JsonWebKey) {
const [header, payload, signature] = token.split(".");
const key = await crypto.subtle.importKey(
"jwk", jwk,
{ name: "RSASSA-PKCS1-v1_5", hash: "SHA-256" }, false, ["verify"],
);
return crypto.subtle.verify(
"RSASSA-PKCS1-v1_5", key, b64urlToBytes(signature),
enc.encode(`${header}.${payload}`),
);
}crypto.subtle runs in the browser's native crypto implementation, not in JavaScript, so it is both faster and harder to get subtly wrong than a hand-rolled HMAC.
Unwrapping PowerShell and gzip payloads locally
-EncodedCommand is Base64 over UTF-16LE, which is why pasting it into a generic Base64 decoder gives you text with a null byte between every character. Attackers frequently wrap a second stage in gzip as well. TextDecoder and DecompressionStream cover both layers without a single dependency:
const b64ToBytes = (b64: string) =>
Uint8Array.from(atob(b64.replace(/\s+/g, "")), (c) => c.charCodeAt(0));
// powershell.exe -EncodedCommand <b64> is Base64 over UTF-16LE text
export const decodeEncodedCommand = (b64: string) =>
new TextDecoder("utf-16le").decode(b64ToBytes(b64));
// Gzip-wrapped payloads and compressed syslog exports
export async function gunzipToText(bytes: Uint8Array, encoding = "utf-8") {
const stream = new Blob([bytes])
.stream()
.pipeThrough(new DecompressionStream("gzip"));
const buffer = await new Response(stream).arrayBuffer();
return new TextDecoder(encoding).decode(buffer);
}CIDR maths with 32-bit unsigned arithmetic
JavaScript bitwise operators work on signed 32-bit integers, so 0xffffffff << 8 comes back negative. The fix is the unsigned right shift, >>> 0, after every operation. With that one rule, IPv4 subnetting is a few lines of TypeScript, including the addresses each cloud provider keeps for itself:
const ipToInt = (ip: string) =>
ip.split(".").reduce((acc, octet) => ((acc << 8) + Number(octet)) >>> 0, 0);
const intToIp = (n: number) =>
[24, 16, 8, 0].map((shift) => (n >>> shift) & 255).join(".");
// Network + router/gateway + DNS/reserved + broadcast, per provider docs
const RESERVED = { aws: 5, azure: 5, gcp: 4 } as const;
export function split(cidr: string, newPrefix: number, cloud: keyof typeof RESERVED) {
const [ip, prefix] = cidr.split("/");
const mask = Number(prefix) === 0 ? 0 : (0xffffffff << (32 - Number(prefix))) >>> 0;
const base = (ipToInt(ip) & mask) >>> 0;
const step = 2 ** (32 - newPrefix);
const count = 2 ** (newPrefix - Number(prefix));
return Array.from({ length: count }, (_, i) => {
const network = (base + i * step) >>> 0;
return {
cidr: `${intToIp(network)}/${newPrefix}`,
broadcast: intToIp((network + step - 1) >>> 0),
usable: Math.max(step - RESERVED[cloud], 0),
};
});
}Inside the core utilities
The Visual CIDR Subnet Splitter and Cloud VPC Calculator is built directly on the function above. You enter a range such as 10.20.0.0/16, drag it down to any prefix up to /32, and every child subnet shows its network, broadcast and usable count for AWS, Azure or GCP. AWS and Azure both reserve five addresses per subnet; GCP reserves four. That difference matters most on small ranges, which is why I also wrote the /30 vs /29 subnet mask usable IP architecture guide for point-to-point links, where one wrong prefix wastes half the block or leaves you with no usable host at all.
On the Linux side, the Linux Chmod Octal and Symbolic Permissions Calculator converts between rwxr-x--- and 750 in both directions, and raises a compliance warning when you land on 777 or 666, the two modes that keep turning up in audit findings for world-writable web roots and config files. The companion least-privilege Linux chmod 000, 400, 555, 600, 666, and 770 permissions guide explains when each mode is the right answer, such as 400 for SSH private keys and 770 for a shared group directory.
For incident response, the offline PowerShell Base64 and gzip Log De-obfuscator chains the decoders shown earlier. It detects UTF-16LE, peels off gzip and deflate layers, and keeps going until it reaches readable script, so a three-stage loader becomes one paste. The 100% browser-local JWT Inspector and Security Auditor decodes claims, verifies HS256 and RS256 signatures with WebCrypto, and flags the issues I actually see in reviews: alg: none, missing exp, tokens with lifetimes measured in weeks, and sensitive data stored in plain claims.
Two more tools close the loop between finding and reporting. The CVSS v4.0 and v3.1 Severity Score Calculator produces a vector string and score for both versions side by side, which helps while organisations run the two in parallel. The SPF and DMARC DNS Record Generator builds records with the right mechanisms, warns when an SPF record is heading past the ten-lookup limit, and helps you stage a DMARC policy from p=none to p=reject without breaking legitimate mail.
The site itself is a statically generated Next.js app with more than 70 routes, served in English and German. There is no API route, no database and no server action anywhere in the codebase. Every page is plain HTML and JavaScript at the edge; all of the work happens after it loads.
Verifying zero telemetry in Chrome DevTools
You should not take my word for any of this. A privacy claim is only worth something if you can test it, and this one takes about two minutes:
- Open any tool page, then press
F12and switch to the Network tab. - Tick Preserve log, then click the clear button so the list is empty after the page has loaded.
- Set the throttling dropdown to Offline, or simply turn on Airplane Mode or pull the network cable.
- Paste a real-looking token, an encoded command or a CIDR range and run the tool.
- Watch the request list. It stays empty, and the result still appears, because nothing needs the network.
Filter by Fetch/XHR and WS if you want to be thorough, and check the Application tab to confirm nothing you pasted lands in local storage. If a tool ever makes an outbound request with your input, that is a bug, and I want to hear about it.
The trade-offs I accepted
Going fully client-side is not free, and I would rather be honest about the costs than pretend there are none.
- No live lookups. The JWT Inspector will not fetch your identity provider's JWKS endpoint for you. You paste the public key yourself. That is one extra step, and it is the price of keeping the request list empty.
- Browser baselines.
DecompressionStreamonly reached every major engine in 2023. Older locked-down VDI images can still lack it, so any tool built on it has to feature-detect the API and say so plainly rather than fail silently. - Bundle discipline. With no server to offload work to, every dependency ships to the analyst's browser. I treat each npm package as a supply-chain risk and a performance cost, which is a big part of why the core logic leans on native Web APIs rather than libraries.
- No usage data. I cannot see which tools people use most, because I chose not to collect it. Feedback has to come from people writing to me, and that is a trade I am happy with.
What I would tell another engineer building this
Start from the threat model, not the feature list. Once "the input never leaves the device" is a hard requirement, most design decisions make themselves: static generation over server rendering, native Web APIs over npm packages, and no analytics script that could read form fields. The browser is a capable, sandboxed runtime. For security tooling that handles live credentials and logs, it is the right place to do the work.
Try it at LocalSecTools, and if you have a utility you keep pasting sensitive data into, tell me through the contact form. It may well be the next tool on the list.