Skip to content

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.

VersionSupported
Latest release / active branchYes
Older commits / tagsNo

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:

  1. Open a GitHub Security Advisory, or
  2. 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-dir per browser kind under ~/.config/lazyteams/sessions/chromedp-<browser>/ with 0700 permissions (also satisfying Chrome 136+, which blocks remote debugging against default profiles).
  • Executable pinning (.meta.json): each chromedp profile stores its engine, browser kind, and canonical executable path in sessions/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, chromedp passes --password-store=basic inside the owner-only 0700 profile 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 and chromedp profiles never interfere.
  • Single-owner locks: profile locks (sessions/chromedp-<browser>.lock and browser-session.lock, 0600) prevent concurrent lazyteams-auth processes from corrupting a shared browser profile.
  • Custom config root: setting LAZYTEAMS_CONFIG_DIR isolates 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/.

LocationContentsIntended Permissions
~/.config/lazyteams/tokens.envJWT tokens, cookies, and credential metadata0600
~/.config/lazyteams/prefs.jsonUI and auth engine preferences0600
~/.config/lazyteams/graph-accountSaved account hint (UPN/email) for headless Graph renewal0600
~/.config/lazyteams/sessions/chromedp-<browser>/Isolated chromedp browser profile (cookies, local storage)0700
~/.config/lazyteams/sessions/chromedp-<browser>.meta.jsonBrowser executable pinning metadata0600
~/.config/lazyteams/browser-session/Isolated Playwright/Firefox profile (when opt-in Playwright is used)0700
~/.config/lazyteams/auth-helper.logDiagnostic 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-auth strictly next to its own executable path (not arbitrary PATH entries) 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 CredentialSet snapshots and written atomically to tokens.env (0600).
  • Identity binding (oid, tid): before persisting a newly captured Microsoft Graph token, lazyteams-auth checks that its account (oid) and tenant (tid) claims agree with the active Teams session.
  • Fabric guard (Stage 7B): TEAMS_FABRIC_TOKEN capture and persistence remain disabled in v0.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 via Ctrl+L.

Security Recommendations for Users ​

  • Run LazyTeams and lazyteams-auth only on machines you trust.
  • Keep ~/.config/lazyteams/ (or your custom LAZYTEAMS_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.env or 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.log output 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.Marshal for 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:

  1. Reporter submits a private report.
  2. Maintainers confirm and develop a fix.
  3. A patch is merged and released.
  4. 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.