Detections · What MacVigil reads to decide

Sign-in and session tokens: how a Mac program signs in to its services

Once you sign in, apps rarely ask for your password again: they keep a session token or a refresh token instead. Those tokens can be worth as much as the password, sometimes more, because they skip the second factor. This category records how a file signs in to services: the account fields, sign-in addresses and token names it carries.

Updated November 25, 2026 · 8 detections in this category

In short

How the program signs in to its own services: account fields, sign-in routes, OAuth codes, session and refresh tokens. Most connected software has some; other programs' stored secrets are under credential theft.

MacVigil has 8 detections in this category. It reads the file to find them and never runs it.

What it is

Signing in leaves traces in code: a username field, a /login or /oauth/ address, OAuth field names such as authorization_code or code_verifier, and the names of the tokens that keep a session open. Almost every connected app has them.

For an attacker, these same names show where the keys to an account live. A session cookie or a refresh token copied from one Mac can be replayed on another to open the account without the password or the second factor. Stealing other programs’ stored secrets, such as a browser’s cookies and saved passwords, belongs to credential theft. This category is narrower: how the file itself handles signing in.

How Mac malware does it

What MacVigil looks for

MacVigil reads the file and never runs it. In scripts, web code and configuration text it notes the words that name account fields, sign-in paths, OAuth fields, refresh tokens and session secrets. In browser extensions it finds code that answers authentication requests, and usernames and passwords written into the code.

All of these are recorded for information. A sign-in field is a lexical indicator: it establishes no execution or use on its own and does not make a file dangerous. What turns a token into evidence is elsewhere in the report, when the same file reads another program’s stored secrets or sends them out, which the credential theft and data exfiltration findings cover.

When it is normal

Every app with an account does this: mail clients, cloud storage, chat, password managers, developer tools that sign in to a code host or a package registry, and VPN or proxy extensions you configured yourself. Login pages, sign-in libraries and error messages such as “incorrect password” are normal parts of these programs.

How to check your Mac

Know what a file does before you open it

MacVigil reads any app, disk image, installer or script without running it, and shows the evidence behind every finding. Nothing leaves your Mac.

Download free for Mac

More: all detection categories · what MacVigil detects · the blog