# Brennenstuhl on Security > Essays, a field guide and research notes by Jan Brennenstuhl on application security, identity, passwords, tokens and agentic engineering. Every page has a Markdown twin at its URL plus `index.md`, and every claim in the field guide has a stable anchor you can cite. Jan Brennenstuhl is a principal engineer in Berlin working on application security and agent identity. Original writing is CC BY 4.0 unless an entry says otherwise: reuse it, and link the canonical URL. Publication, modification and review dates mean different things; a rebuild is not a review. ## How to read this site - [Full corpus as one Markdown file](https://www.janbrennenstuhl.eu/llms-full.txt): every entry below, newest first. - [Catalog](https://www.janbrennenstuhl.eu/catalog.json): IDs, URLs, dates, review status, topics, license and content hashes for every entry. - [Findings](https://www.janbrennenstuhl.eu/findings.json): every quotable finding with its anchor URL and source. - [JSON Feed](https://www.janbrennenstuhl.eu/feed.json) and [RSS](https://www.janbrennenstuhl.eu/index.xml): full-content updates. Each topic has its own feeds. - [Glossary](https://www.janbrennenstuhl.eu/glossary/): definitions of OAuth, OIDC, JOSE and agent-identity terms, with anchors. - Content negotiation: request any page with `Accept: text/markdown` to get its Markdown twin. - [capabilities.txt](https://www.janbrennenstuhl.eu/capabilities.txt): what an agent can do here, including the read-only MCP server at https://mcp.janbrennenstuhl.eu/mcp. ## Topics - [Agentic Engineering](https://www.janbrennenstuhl.eu/topics/agentic-engineering/): Building software with coding agents, and giving agents scoped, revocable authority over the tools they use. - [Identity & Auth](https://www.janbrennenstuhl.eu/topics/identity-authentication/): OpenID Connect, OAuth, passkeys and step-up: who is acting, on whose behalf, and how strongly that was proven. - [AppSec](https://www.janbrennenstuhl.eu/topics/application-security/): Secure defaults, platform-level controls and the attacks they have to hold against, from phishing to supply chains. - [Passwords](https://www.janbrennenstuhl.eu/topics/passwords/): Password policies that people can follow, systems that do not punish password managers, and the attacks on reused credentials. - [Tokens & JWT](https://www.janbrennenstuhl.eu/topics/tokens-jwt/): JSON Web Tokens and the JOSE family: what tokens are for, how they are signed, encrypted and verified, and where they go wrong. - [Engineering Practice](https://www.janbrennenstuhl.eu/topics/engineering-practice/): Notes from running software: cloud infrastructure, European hosting, tooling and the occasional migration. ## Field guide - [How does authorization work for MCP servers?](https://www.janbrennenstuhl.eu/knowledge-base/agent-identity/mcp-authorization/index.md): In MCP revision 2026-07-28, a protected MCP server over HTTP is an OAuth 2.1 resource server that accepts only tokens issued for itself. - [How should people grant and revoke an agent's access?](https://www.janbrennenstuhl.eu/knowledge-base/agent-identity/consent-and-revocation/index.md): People should grant an agent access per service with chosen permissions and an expiry, and be able to revoke that grant at any time. - [How does OAuth 2.0 Token Exchange keep provider tokens away from agents?](https://www.janbrennenstuhl.eu/knowledge-base/agent-identity/token-exchange/index.md): OAuth 2.0 Token Exchange (RFC 8693) lets a gateway trade an agent's token for a provider token, so the provider token never has to reach the agent. - [What is inside a JWT?](https://www.janbrennenstuhl.eu/knowledge-base/oidc/jwt-anatomy/index.md): A signed JWT's claims are readable by anyone who holds it; trust comes only from verifying the signature with an allowed algorithm and a trusted key. - [What should a password policy require?](https://www.janbrennenstuhl.eu/knowledge-base/account-security/password-policy-requirements/index.md): NIST SP 800-63B-4 sets a 15-character minimum for single-factor passwords, forbids composition rules and periodic changes, and requires blocklist checks and support for password managers. - [Should an agent use a robot account or delegated access?](https://www.janbrennenstuhl.eu/knowledge-base/agent-identity/delegation-vs-robot-accounts/index.md): An agent that acts for a person should use delegated access that names both the person and the agent. - [Where do OpenID Connect implementations break?](https://www.janbrennenstuhl.eu/knowledge-base/oidc/openid-connect-security/index.md): Testing 6 certified OpenID providers and 8 relying parties against 18 known attacks uncovered 12 implementation flaws. - [Do password strength meters work?](https://www.janbrennenstuhl.eu/knowledge-base/account-security/password-strength-meter/index.md): Password strength meters produce stronger passwords when users change passwords on important accounts, but make no observable difference on unimportant ones. - [Do login challenges and risk scoring stop account takeover?](https://www.janbrennenstuhl.eu/knowledge-base/account-security/reinforced-authentication/index.md): Device-based login challenges block far more account takeover attempts than knowledge-based ones. - [How common is password reuse?](https://www.janbrennenstuhl.eu/knowledge-base/account-security/password-reuse/index.md): Somewhere between 43% and 51% of users reuse the same password across multiple sites. - [How do you protect accounts from stolen credentials?](https://www.janbrennenstuhl.eu/knowledge-base/account-security/credential-stuffing/index.md): Checking credentials against breach data and adding device and location risk signals to the login decision reduce the risk from stolen passwords. - [How secure are email-based password resets?](https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-recovery/index.md): 72% of the website account recovery mechanisms studied had at least one implementation weakness. - [How do attackers take over accounts?](https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-takeover/index.md): At least 35 of 75 popular online services studied were vulnerable to account pre-hijacking attacks. ## Essays - [Agent Substrate Knows Which Agent Is Calling, but Not for Whom](https://www.janbrennenstuhl.eu/agent-substrate-identity/index.md): Agent Substrate tells a credential provider which actor is asking but not which person delegated. The Agentic Identity Broker can check the person's grant behind the egress gateway, but only the platform can attest which person an actor runs for. - [State of the Broker: October 2026](https://www.janbrennenstuhl.eu/state-of-the-broker-october-2026/index.md): In its first full month as open source, the Agentic Identity Broker gained third-party OAuth 2.0 features and its first outside contributors, while session stability and running Spec Kit on GitHub took the most work. - [Measuring How MCP Servers Authorize Agents](https://www.janbrennenstuhl.eu/measuring-mcp-authorization/index.md): Public MCP servers implement the MCP Authorization specification unevenly, and Letsauth Lab records each difference as a dated observation with evidence. - [A Read-Only MCP Server with Bunny Edge Script](https://www.janbrennenstuhl.eu/bunny-edgescript-mcp-server/index.md): A personal blog's MCP server will see little traffic, but a live read-only server is a working example of how such a server could look, and the registry's P-384 DNS login needs an undocumented flag. - [What I Learned Building an Identity Broker With Coding Agents](https://www.janbrennenstuhl.eu/agentic-identity-broker/index.md): Coding agents can build security-critical software when people own the specs, the constitution and specs live in the repository, tests must fail first, and more agents review than write. - [Guest Lecture at HTW Berlin: AppSec in the Age of Agentic Engineering](https://www.janbrennenstuhl.eu/new-appsec-operating-model/index.md): AppSec teams should shape the harness, platform and risk model that coding agents work inside, because finding problems after the code is written cannot keep up with agents. - [Shift Down: Why Agentic Engineering Demands Platform-Level Security](https://www.janbrennenstuhl.eu/shift-down-appsec/index.md): Coding agents multiply whatever patterns exist, so AppSec should build security into platform defaults that remove risky decisions, and keep scanning as the fallback. - [Dependency Updates: latest Is Not a Security Strategy](https://www.janbrennenstuhl.eu/dependency-updates/index.md): Automatic dependency updates push compromised packages into builds within hours, so teams should pin exact versions, enforce release-age cooldowns, and upgrade on their own schedule after review. - [AppSec in the Age of Agentic Engineering](https://www.janbrennenstuhl.eu/appsec-agentic-engineering/index.md): AppSec teams keep up with coding agents by fixing findings inside the agent loop, shipping security tooling to agents, and managing risk budgets together with SRE and platform teams. - [Goodbye Big Tech: My European JAMstack Migration](https://www.janbrennenstuhl.eu/european-jamstack/index.md): A static JAMstack site can run entirely on European providers: Codeberg for code and Forgejo Actions deployment, Bunny CDN for hosting, and Plausible for cookie-free analytics. - [Bunny Shield Review: 3 Things Need Improvement](https://www.janbrennenstuhl.eu/bunny-shield-review/index.md): Bunny Shield is easy to set up and has reasonable default rules, but it needs bot allowlisting, traceable WAF event logs and a fix for blocked Let's Encrypt HTTP-01 challenges. - [Bunny CDN: How to redirect Root Domain to Subdomain](https://www.janbrennenstuhl.eu/bunny-cdn-domain-redirect/index.md): With Bunny DNS you can redirect a root domain to its www subdomain using a redirect (RDR) record, or a pull zone or CNAME record combined with a 301 Edge Rule. - [What is JWA? A Deep Dive into JSON Web Algorithms](https://www.janbrennenstuhl.eu/jwa/index.md): JWA defines the algorithms behind every JWT: HMAC suits setups with one issuer and verifier, while RSA and ECDSA let OpenID Connect clients verify tokens without central introspection. - [Mastering JWKS: JSON Web Key Sets Explained](https://www.janbrennenstuhl.eu/jwks/index.md): A JSON Web Key Set lets an identity provider publish its public keys at one URL, so clients can verify JWT signatures locally and the issuer can rotate keys without redistributing them. - [JSON Web Encryption: Exploring JWE Token](https://www.janbrennenstuhl.eu/jwe/index.md): JWE keeps a JWT's payload confidential through authenticated encryption, but its security depends on careful algorithm choice, key management, token expiry and keeping sensitive data out of headers. - [JWT vs OAuth 2.0: Understanding the Key Differences](https://www.janbrennenstuhl.eu/jwt-vs-oauth/index.md): OAuth 2.0 is an authorization framework for delegated access and JWT is a token format, so the two complement each other, and OpenID Connect combines them. - [What is Whaling Cyber Awareness? Prevention Tips & Training](https://www.janbrennenstuhl.eu/whaling-awareness/index.md): Whaling defense combines regular awareness training and simulations with SPF, DKIM and DMARC, two-factor email login, and payment policies that require out-of-band verification and two sign-offs. - [Whaling Phishing: Definition and Prevention Strategies](https://www.janbrennenstuhl.eu/whaling-phishing/index.md): Whaling targets executives with researched, personalized phishing that technical controls alone do not stop, so organizations need awareness training and must verify unusual payment requests through a separate channel. - [Step-Up Authentication: Elevating Security with OpenID Connect (OIDC)](https://www.janbrennenstuhl.eu/step-up-authentication/index.md): Step-up authentication asks for extra factors only for sensitive actions, and OpenID Connect relying parties can request it from the identity provider with the max_age and acr_values parameters. - [Password Attack Guide: What is Password Spraying?](https://www.janbrennenstuhl.eu/password-spraying/index.md): Password spraying tries a few common passwords across many accounts to avoid lockouts, so defenders need failed-login monitoring, bot management and MFA, and passwordless login removes the target entirely. - [Passwordless: Critical Notes on FIDO2 Passkeys](https://www.janbrennenstuhl.eu/fido-passkeys/index.md): Passkeys resist phishing but replace knowledge with possession and tie users to devices and Big Tech vendors, so most people should wait for the ecosystem to mature before going passkey-only. - [Passwordless Authentication: Future of Cybersecurity](https://www.janbrennenstuhl.eu/passwordless-authentication/index.md): Passwordless login through biometrics, security keys or passkeys is more secure and easier to use than passwords, though organizations must invest in infrastructure and win user acceptance. - [Long Password Support for Safer Login Systems](https://www.janbrennenstuhl.eu/long-password-support/index.md): Login systems should accept long passwords from users and password managers, hash them with Argon2id or scrypt, and still set an explicit maximum length to prevent hashing denial of service. - [Max Password Length: A Secure Password Guide](https://www.janbrennenstuhl.eu/max-password-length/index.md): Length matters more than complexity: use unique passwords of at least 12 to 16 characters, and services should not cap passwords below 64 characters. - [Honeytoken: Authentication Attack Breach Detection](https://www.janbrennenstuhl.eu/honeytoken/index.md): Fake customer accounts with plausible credentials, planted in the user database and watched by the identity provider, alert a security team when attackers use breached data, though they cannot prevent attacks. - [How to Design a Strong & Usable Password Policy](https://www.janbrennenstuhl.eu/password-policy/index.md): A strong, usable password policy requires at least 12 characters, checks guessability, blocks common and breached passwords, and drops composition rules and forced password changes. - [How to: Password-Manager Friendly Login Forms](https://www.janbrennenstuhl.eu/password-manager-friendly/index.md): Login forms work well with password managers when inputs carry the right autocomplete values, length rules sit in pattern or passwordrules attributes, and the site offers /.well-known/change-password. - [Learning AssertJ: Null ain't Blank](https://www.janbrennenstuhl.eu/assertj-null-not-blank/index.md): AssertJ's isNotBlank() passes for a null string, unlike Apache Commons StringUtils and Hibernate Validator, so Java tests that rely on it can miss null values. - [The Purpose of JWT: Stateless Authentication](https://www.janbrennenstuhl.eu/jwt-stateless-authentication/index.md): The purpose of JWT is stateless authentication: signed, self-contained tokens let services verify identity locally without a central session store, at the cost of hard revocation and token theft risk. - [On Making Spring Security OAuth RFC-compliant](https://www.janbrennenstuhl.eu/spring-security-oauth-rfc/index.md): Contributing a small fix to a long-lived library such as Spring Security OAuth means fitting its old Java version, minimal dependencies and backward compatibility, and it teaches you the underlying RFCs. - [Weak Crypto, Github SAML Attack & Twitter Security UX](https://www.janbrennenstuhl.eu/weak-google-crypto-github-saml/index.md): GitHub Enterprise users should patch a critical SAML authentication bypass right away, and Twitter's login alert email shows how a badly worded security notification can work against users. - [Single-Use JWT: Unlocking the Power of Stateless One Time Token](https://www.janbrennenstuhl.eu/single-use-jwt/index.md): You can make a JWT single-use without a token store by signing it with server-side state that the operation changes, such as the current password hash in a password reset. - [AWS DynamoDB: Backup & Recovery Strategy](https://www.janbrennenstuhl.eu/dynamodb-backup/index.md): You can back up DynamoDB tables with nightly Data Pipeline exports to S3, use a Lambda function to restage them into a test environment, and restore from the same backups. - [Evolution of a Microservice: A Git History Visualisation](https://www.janbrennenstuhl.eu/microservice-evolution/index.md): Microservices keep their benefits only if teams cut them down regularly: one service grew from 5k to 15k lines of code in a year and shrank back to about 5k after a split. - [Abusing JSON: Why AWS CloudFormation sucks?!](https://www.janbrennenstuhl.eu/aws-cloudformation/index.md): CloudFormation misuses JSON as a scripting language, which makes templates hard to read and maintain, and tools such as CFN-Sphere add YAML templates and stack dependency resolution on top. - [Python Docopt: Convert Tuple List to Dictionary](https://www.janbrennenstuhl.eu/python-tuples-to-dict/index.md): With docopt you can turn a comma-separated option such as key1.value1,key1.value2 into a dictionary of lists by splitting it into tuples and collecting them in a defaultdict(list). - [How to Migrate SVN to GIT with History?](https://www.janbrennenstuhl.eu/svn-to-git/index.md): You can migrate an SVN repository to Git with its full history and authors by extracting the SVN authors into an authors file and running git svn clone -A authors.txt. - [How to Check Github Licenses](https://www.janbrennenstuhl.eu/github-license-checker/index.md): Github-Licker is a small Python command-line tool that uses the GitHub Licenses API to list the licenses of an organization's repositories and find repositories without a license file. - [AWS Monocyte: Let's Build a Cloud Immune System](https://www.janbrennenstuhl.eu/aws-cloud-immune-system/index.md): AWS Monocyte finds and deletes AWS resources in regions outside the EU, so companies can let teams run their own accounts and still enforce EU data rules, if only reactively. ## Talks and projects - [Letsauth Lab](https://www.janbrennenstuhl.eu/projects/letsauth-lab/index.md): Letsauth Lab records what public MCP servers serve of the MCP Authorization specification as dated observations with evidence, so agent authorization can be checked against measured data. - [Economies of Scale for MCP and Agents](https://www.janbrennenstuhl.eu/talks/economies-of-scale-for-mcp/index.md): Agents should not hold shared, long-lived provider credentials; an identity broker ties delegated access to both person and agent, and a gateway keeps provider tokens out of the agent. - [Agentic Identity Broker](https://www.janbrennenstuhl.eu/projects/agentic-identity-broker/index.md): Agentic Identity Broker gives agents scoped, revocable access to tools on behalf of people, keeping both user and agent in authorization decisions and provider tokens out of the agent's context. - [HTW Berlin Talk: AppSec and Agentic Engineering](https://www.janbrennenstuhl.eu/talks/htw-berlin-agentic-appsec/index.md): AppSec teams should shape the harness, platform and risk model that coding agents work inside, because finding problems after the code is written cannot keep up with agents. ## Reference - [Glossary](https://www.janbrennenstuhl.eu/glossary/index.md): Short definitions of the identity, token, password and agent terms used across the site. - [About Jan Brennenstuhl](https://www.janbrennenstuhl.eu/about/index.md): Jan Brennenstuhl is a principal engineer in Berlin who works on application security, identity and agentic engineering. ## Optional - [Now](https://www.janbrennenstuhl.eu/now/index.md): current projects and talks. - [Accessibility statement](https://www.janbrennenstuhl.eu/accessibility/)