Security Policy
Supported Versions
LazyTeams is pre-release software. Security fixes are applied to active development and the latest release on the default branch (main). Older commits and historical tags are not maintained separately.
| Version | Supported |
|---|---|
| Latest release / active branch | Yes |
| Older commits / tags | No |
Reporting a Vulnerability
If you discover a security issue, please do not open a public GitHub issue with exploit details, tokens, cookies, or session data.
Report it privately instead:
- Open a GitHub Security Advisory, or
- Contact the maintainer through a private channel (email or direct message).
Include, when possible:
- A clear description of the issue and its impact
- Steps to reproduce
- Affected files or components
- Any suggested fix or mitigation
Please redact tokens, cookies, JWTs, account emails, and personal paths from any report.
Scope
In scope:
- Credential handling, storage, permissions, or accidental exposure in logs/repository
- Local privilege escalation or path traversal (e.g. file download/write outside the intended directory)
- Command injection or unsafe subprocess execution
- Terminal escape-sequence or hyperlink (OSC 8) abuse via untrusted Teams content
- Insecure handling of URLs opened in the system browser
- Authentication helper (
lazyteams-auth) session isolation, profile locking, or token validation flaws
Out of scope:
- Issues requiring full access to the victim's local account and
~/.config/lazyteams/(treated as a trusted local secret store, comparable to~/.ssh/) - Microsoft Teams, Graph API, or Entra ID vulnerabilities (report to Microsoft Security Response Center)
- Organizational compliance or Terms of Service questions regarding third-party clients
- Social engineering or phishing against users
Authentication & Profile Security Architecture
Isolated Browser Profiles
LazyTeams never attaches to or modifies your personal everyday browser profile.
chromedp(default): creates an isolated--user-data-dirper browser kind under~/.config/lazyteams/sessions/chromedp-<browser>/with0700permissions (also satisfying Chrome 136+, which blocks remote debugging against default profiles).- Executable pinning (
.meta.json): eachchromedpprofile stores its engine, browser kind, and canonical executable path insessions/chromedp-<browser>.meta.json(0600). On Windows, this prevents opening the same profile with a different browser executable and corrupting App-Bound Encrypted cookies. - Linux keyring behavior: on Linux,
chromedppasses--password-store=basicinside the owner-only0700profile directory so headless renewals do not fail when an unlocked desktop keyring (OSCrypt v11) is unavailable. playwright(opt-in): uses a completely separate directory (~/.config/lazyteams/browser-session/,0700) so Playwright andchromedpprofiles never interfere.- Single-owner locks: profile locks (
sessions/chromedp-<browser>.lockandbrowser-session.lock,0600) prevent concurrentlazyteams-authprocesses from corrupting a shared browser profile. - Custom config root: setting
LAZYTEAMS_CONFIG_DIRisolates tokens, preferences, logs, and browser profiles into a separate directory.
File Permissions & Sensitive Local Files
Anyone with read access to the LazyTeams config directory can act as your signed-in Teams user. Treat it with the same care as ~/.ssh/.
| Location | Contents | Intended Permissions |
|---|---|---|
~/.config/lazyteams/tokens.env | JWT tokens, cookies, and credential metadata | 0600 |
~/.config/lazyteams/prefs.json | UI and auth engine preferences | 0600 |
~/.config/lazyteams/graph-account | Saved account hint (UPN/email) for headless Graph renewal | 0600 |
~/.config/lazyteams/sessions/chromedp-<browser>/ | Isolated chromedp browser profile (cookies, local storage) | 0700 |
~/.config/lazyteams/sessions/chromedp-<browser>.meta.json | Browser executable pinning metadata | 0600 |
~/.config/lazyteams/browser-session/ | Isolated Playwright/Firefox profile (when opt-in Playwright is used) | 0700 |
~/.config/lazyteams/auth-helper.log | Diagnostic log (created only with --debug) | 0600 |
Never commit any of these files to version control, and never paste their contents into issues, PRs, or chat logs.
Credential Persistence & Helper Controls
- Internal helper resolution: the TUI resolves
lazyteams-authstrictly next to its own executable path (not arbitraryPATHentries) and verifies executable permissions before running it. - Owned process group cleanup: background helper runs execute in an owned process group that is cleanly terminated when the TUI exits.
- Atomic generation snapshots: credentials are loaded into immutable, generation-tracked
CredentialSetsnapshots and written atomically totokens.env(0600). - Identity binding (
oid,tid): before persisting a newly captured Microsoft Graph token,lazyteams-authchecks that its account (oid) and tenant (tid) claims agree with the active Teams session. - Fabric guard (Stage 7B):
TEAMS_FABRIC_TOKENcapture and persistence remain disabled inv0.2.0. - Host allowlist & terminal sanitization: authenticated HTTP requests are restricted to allowlisted Microsoft API/CDN hosts to prevent token exfiltration, and rendered remote text/URLs strip control/escape sequences to block terminal injection.
Limits of Silent Automation (MFA & Conditional Access)
LazyTeams runs token renewals without a visible browser window when your existing isolated browser session is accepted by Microsoft. However:
- Microsoft does not guarantee indefinite silent renewal.
- MFA challenges, Entra ID Conditional Access policies, sign-in frequency limits, IP/network changes, password resets, or SSO session expiration can require interactive verification at any time.
- LazyTeams never attempts to bypass MFA, CAPTCHAs, or Conditional Access. When a headless renewal detects an interactive challenge, it aborts the headless attempt cleanly, marks
interaction_required, and prompts you to sign in visibly viaCtrl+L.
Security Recommendations for Users
- Run LazyTeams and
lazyteams-authonly on machines you trust. - Keep
~/.config/lazyteams/(or your customLAZYTEAMS_CONFIG_DIR) readable only by your user account. - Do not run LazyTeams on shared or multi-user systems without understanding the local credential exposure.
- Revoke active sessions in your Microsoft account portal if you suspect
tokens.envor a browser profile directory was copied. - Prefer building from source or verifying official release checksums (
SHA256SUMS); do not run untrusted prebuilt binaries. - Never paste unredacted
auth-helper.logoutput into public bug reports.
Security Recommendations for Contributors
- Do not add hardcoded tokens, cookies, or API keys to the codebase.
- Do not commit compiled binaries, debug dumps, or local config files.
- Use
json.Marshalfor API payloads; avoid string-interpolated JSON. - Escape user-controlled content before embedding it in HTML sent to Teams APIs.
- Sanitize remote file names before writing to disk (
filepath.Base+ target directory containment checks). - Validate URLs before passing them to system openers or OSC 8 terminal hyperlinks; restrict to safe schemes (
https://). - Never log raw JWTs, cookies, or sensitive headers in default or debug output.
Disclosure Policy
We follow coordinated disclosure:
- Reporter submits a private report.
- Maintainers confirm and develop a fix.
- A patch is merged and released.
- A public advisory or release note is published with credit to the reporter (unless anonymity is requested).
Disclaimer
LazyTeams is an independent, educational terminal client. It is not affiliated with, endorsed by, or supported by Microsoft Corporation. Use at your own risk and in compliance with your organization's policies and Microsoft's terms of service.