Documentation
¶
Overview ¶
Package browserext inventories the extensions installed in a developer's browsers.
The unit of collection is a browser: one set of data directories, one parser family, one coverage status. A browser's status answers whether the set of extension identities reported for it is complete, because the state it feeds is stored per extension and only a complete list can authorise deleting the rows it leaves out. Anything else, an unresolved name or a permission list too long to ship whole, degrades the browser without casting doubt on membership.
Every location is an exact path under the target user's home rather than a tree to walk, every read has a byte cap and goes through descriptors that follow no symlink, and nothing executes: no browser is launched, no store is called, and the browsers' SQLite stores (cookies, history, passwords) are never opened.
Adding a browser of a family already here is a table row. A new family is a parser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector inventories the extensions installed in this machine's browsers. It reads the browsers' own state files and nothing else: no browser is launched, no store is asked what it published, and no extension's code is opened.
func (*Detector) Detect ¶
func (d *Detector) Detect(ctx context.Context, target *user.User) (info *model.BrowserExtensionScanInfo)
Detect returns the inventory for one run, for the account named by target.
It returns nil, the "did not run" sentinel, when there is no interactive account to describe. Reading a service account's home would find no browser at all and report every browser missing, which a reader honours by deleting the device's real inventory. Never an error: a browser that could not be read is a coverage status, and a per-extension failure degrades one finding.