VBAuth — Security and Integrity Assurance – A VBAuth Technical Paper #
How VBAuth protects your clients’ environments
Version 1.0 — March 2026 Peter Bryant — Corylus Business Systems | Andrew Richards — The IT Service Ltd
Overview #
VBAuth is a COM-visible .NET DLL that handles OAuth2 authentication against Microsoft Entra ID and the Microsoft Graph API from VBA. Because it runs inside your Access or Excel environment and handles authentication on behalf of your users, we know that trust and security matter — both to you as the developer, and to your clients.
This document explains the three pillars of VBAuth’s security model: how the DLL protects itself from tampering, how the licence system works and why it is non-negotiable, and how authentication is handled safely on behalf of your users.
1. DLL Integrity and Tamper Resistance #
Before VBAuth does anything useful, it checks that it is the genuine, unmodified version issued by us. This is not just good practice — it is the first line of defence for your clients.
Digital signature. Every release of VBAuth.dll is signed with an Extended Validation (EV) code-signing certificate issued to The IT Service Ltd. Windows verifies this signature automatically. If the DLL has been modified after signing — even a single byte — the signature is invalidated. VBAuth checks this signature at runtime and refuses to operate if it is missing or invalid.
Strong-name verification. In addition to the Authenticode signature, VBAuth carries a .NET strong name — a cryptographic identity stamp applied at build time using a private key held only by the developers. At runtime, VBAuth verifies not just that a strong name is present, but that it matches the specific key used to build the official release. A counterfeit or patched DLL re-signed with a different key will fail this check.
Diagnostic logging. VBAuth maintains a diagnostic log in your Windows temporary folder. It records authentication events and any errors encountered — all timestamped in UTC. It contains no credentials, no tokens, and no personally identifiable information. If something goes wrong, you can share the log with our support team without any confidentiality concern.
What this means for you. If a client’s environment somehow ends up with a modified or counterfeit version of VBAuth.dll, the DLL will detect this, refuse to authenticate, and return a clear error. Your VBA code does not need to implement any of these checks — VBAuth handles them silently before any authentication attempt is made.
2. The Licence File — What It Is and Why It Is Required #
Every deployment of VBAuth requires a valid licence file (.LIC) issued specifically for that client’s Microsoft 365 tenant. Without it, VBAuth will not authenticate, regardless of how correctly everything else is configured.
The licence file is not optional. This is by design, not an oversight. VBAuth will not fall back to an unlicensed mode, will not offer a trial period silently, and will not operate with a generic or copied licence file. Each .LIC file is bound to a specific tenant.
What the licence contains. The licence file records the tenant it was issued for, the period it is valid, and the version of VBAuth it covers. Developer annual licences carry a 365-day expiry. Deployment licences and lifetime developer licences are issued for the lifetime of VBAuth v1, which aligns with Microsoft Graph API v1 — meaning they remain valid for the foreseeable future without renewal. It is issued by us and delivered to you for placement in the VBAuth installation folder alongside the DLL.
How VBAuth validates it. When GetAccessToken is called, VBAuth locates all licence files in its installation folder and checks each one. The validation process confirms the file is structurally intact, that it has not been tampered with, that it covers the tenant being authenticated, and that it has not expired. All of these checks must pass. If no valid licence is found, VBAuth returns a clear error message directing the developer to vbauth.com.
Validation requires no internet connection. Licence validation is performed entirely on the local machine — VBAuth does not contact any external server to check your licence. There is no registration process, no activation step, and no ongoing connection required between your machine and our systems. Your licence works wherever VBAuth is installed, without any dependency on our infrastructure.
What this means for you. When you deploy VBAuth to a client site, you provide the .LIC file for that client’s tenant alongside the DLL. One licence, one tenant. If your client moves to a different Microsoft 365 tenant, a new licence is required. Licence files cannot be shared between tenants and cannot be transferred.
3. Authentication — Safe, Supported, and Transparent #
VBAuth uses Microsoft’s own authentication libraries and the OAuth2 authorisation code flow — the same mechanism used by Microsoft’s own applications and recommended by Microsoft for all Graph API integrations.
No passwords are ever handled by VBAuth. When a user authenticates, a Microsoft login dialog is presented directly by Microsoft’s identity platform — either in an embedded browser window or in the user’s default browser. VBAuth never sees, stores, or transmits the user’s password. Credentials are handled entirely by Microsoft.
Tokens are not stored or saved by VBAuth. When an access token is obtained and returned to your VBA code, the MSAL token cache used during that call goes out of scope and becomes unreferenceable — as with all .NET objects, the memory is reclaimed when the garbage collector runs. VBAuth does not write any token data to disk. Our sample demo database demonstrates how to retain the bearer token in VBA memory against its expiry time and scope claims, reusing it silently until it expires or a different scope set is required — at which point a fresh authentication is initiated. Token expiry is set by Microsoft to between 60 and 90 minutes. As a developer you have control over this VBA-side retention, and if your security needs are higher you are at liberty to destroy these values after use and force a fresh authentication for every Graph API call.
Only the permissions you request are granted. VBAuth requests only the Graph API scopes you specify in your call. It does not request broad or administrative permissions on your behalf. The user sees exactly what is being requested during the sign-in flow, and Microsoft enforces those boundaries.
TLS 1.2 is enforced. All communication between VBAuth and Microsoft’s identity platform uses TLS 1.2. Older, weaker protocol versions are explicitly disabled.
Summary #
| Area | Protection |
|---|---|
| DLL authenticity | EV code-signing certificate verified at runtime |
| DLL integrity | Strong-name identity check — specific to our signing key |
| Licence | Cryptographically bound to tenant — mandatory, non-transferable |
| Licence validation | Fully local — no internet connection, no external server, no phone-home |
| Log file | No credentials, tokens, or PII — safe to share with support |
| User credentials | Never handled by VBAuth — Microsoft login dialog only |
| Token persistence | None — VBAuth does not write any token data to disk. See Authentication section for detail on in-process memory behaviour. |
| Network security | TLS 1.2 enforced for all identity platform communication |
VBAuth, developed and maintained by Andrew Richards (The IT Service Ltd) and Peter Bryant (Corylus Business Systems), © 2025–2026. All rights reserved. https://vbauth.com