Summary

  • COPS turned familiar Unix weaknesses—weak passwords, exposed permissions and unsafe startup files—into checks that could be repeated on a local host.
  • Its configurable programs reported possible problems but did not repair them. Most did not need root; the broader SUID-file search was separate and required privilege for better coverage.
  • A clean report described the configured checks and what they reached at that moment. It did not certify complete security or guarantee that the host stayed unchanged.

The recurring faults were the whole point

Every Unix administrator of a certain age knows the ritual. You hunt down a world-writable directory, a password that is just the username, a startup script anyone can edit—fix it, breathe, and then watch the same three faults crawl back a month later. In 1990, Dan Farmer and Eugene H. Spafford asked the obvious, overdue question: why rediscover them by hand at all?

Their answer was COPS—the Computerized Oracle and Password System—a configurable bundle of small checks that turned a familiar list of host weaknesses into something you could run again and again. It was not a scanner in the modern sense, and it was careful about what it claimed. COPS reported problems; it did not fix them, and it did not pretend a clean run meant a safe machine.

COPS was not a network scanner. A top-level shell script gathered output from roughly a dozen subprograms and mailed it to the local administrator or logged it to a file. Most components were Bourne shell and common Unix commands, with small C programs filling specific gaps—so a site could reconfigure or replace the pieces it needed.

The checks were concrete and unglamorous: world-writable files and directories listed in configuration; passwords matching a username or a common word; malformed account and group records; writable files invoked by cron or startup scripts; selected device permissions; home directories and initialization files; the root startup umask; and search paths that included the current directory. One component, suidchk, compared the current set of set-user-ID files against an earlier run. Another, Kuang, used rules to test whether a user could reach a compromised-account condition.

Read that list again and the real contribution shows. COPS did not invent new security theory; it collapsed the cost of repeating a known set of local checks. It never claimed to cover every flaw, and it never decided whether a given permission actually violated a site's policy.

Report, don't repair: why COPS stopped short of the fix

The authors made a deliberate choice: COPS would report, not alter. Two installations with the same hardware and Unix version might do entirely different work, hold different data, and serve different access needs. A setting that is fine at one site can be intolerable at another. Automatic correction would have turned a technical finding into a policy decision the program had no context to make.

The same restraint shaped privilege. The paper says the checks other than the SUID search were not meant to run as root. The SUID search was usually separate: it could take longer and needed access to directories ordinary users cannot read. Routine inspection therefore demanded little privilege—but the reach of any report depended on how each component was actually run.

Privilege, cron, and the trap of a clean run

The paper recommends recurring runs via at or cron, because a condition absent today can appear tomorrow. But scheduling was never completeness. A changed checker or path list could make the output misleading. An attacker who could read the reports—or modify the tool—could shape what the next run revealed. And repeated clean runs breed a dangerous complacency. The authors themselves warned that changes in how a system operates can create weaknesses the existing checks never look for.

What the COPS evidence can and cannot prove

Farmer and Spafford reported feedback from academic, government, and commercial sites. More than half of the systems they had tested or heard about showed conditions that could compromise root—but they were careful not to generalize that limited observation into a prevalence estimate for Unix at large. It is a signal, not a census.

COPS and Farmer's later SATAN work addressed different surfaces. COPS checked local accounts, files, permissions, and startup configuration; SATAN examined network services and the exposure visible from other hosts. Sharing an author does not make their reports interchangeable.

Lu Heng's Note 65 offers a useful editorial lens: claims about a running system should never exceed what the executed checks actually observed. Applied to COPS, the question is always which checks ran, with what access, against which paths, and when. Automation makes a checklist repeatable. It does not relieve the operator of defining scope, protecting output, interpreting findings, and choosing the repair. COPS was honest about that boundary. Most of the tools that followed were not.

Sources