# Counterlure Enterprise — Organization Manual > **Audience:** CISOs, Insider Threat Leads, Corporate Security Teams, AppSec Reviewers, and Enrolled Staff > **Portal:** · **Apply:** > **Client:** Open-source Apache-2.0 CLI (`counterlure-cli`) --- ## 1. Threat Model: Off-Platform Human Targeting Strategic competition has shifted. Proprietary research, foundation models, chip designs, source code, and corporate data are now primary targets for state-sponsored intelligence services alongside traditional military assets. When perimeter defenses and endpoint controls hold, collection shifts to the people who have access. EDR, DLP, SIEM, and email gateways monitor corporate devices and corporate networks. They do not see who is approaching your engineers, researchers, and executives off-platform: - A researcher meets a plausible "investor" or "academic" at an AI, defense, or semiconductor conference. - A cleared engineer receives a message from a "specialist recruiter" on LinkedIn who moves the conversation to WhatsApp or Telegram. - An executive matches with a well-researched persona on a dating app who slowly probes roadmaps, travel, or colleagues. State-sponsored intelligence services and organized espionage groups rarely target one person in isolation. The same operative works multiple staff inside the same organization in parallel using the same face under different cover names. Traditional security hotlines miss these campaigns because employees rarely report personal approaches to HR or Security. They worry about embarrassment, internal scrutiny, or clearance review if the contact turns out to be harmless. Counterlure Enterprise closes that gap by keeping individual employee reports unattributed and invisible to the employer. --- ### Why Staff Stay Silent (Research) Studies of employee security reporting keep finding the same barriers: people notice something wrong, then say nothing because reporting costs them more than silence. | Barrier | Source | Finding | |---|---|---| | Fear of blame and liability | Burda et al., Eindhoven University of Technology, 2025 | Even employees who want to protect colleagues hold back for fear of being blamed, and because they are unsure an approach is truly malicious. | | Not at their own expense | Carleton University, 2024 | Staff recognize concerning approaches but feel a strong pull to do nothing, out of fear of retaliation, social friction, and personal scrutiny. | | Distrust of internal confidentiality | International Journal of Critical Infrastructure Protection, 2018 | In critical-infrastructure organizations, low confidence that reports stay confidential, and fear of raising a false alarm, suppress formal reporting. | | Shame and peer disapproval | University of Sussex & University of Auckland, 2020 | Shame and fear of colleagues' judgment deter employees from admitting they engaged with a lure once doubts set in. | | Privacy and handling friction | RAID '24 | Uncertainty over how reports are handled, and reluctance to expose personal message threads, reduce reporting. | **What Counterlure changes:** staff screen and report through an independent, external tool. Their employer never learns who reported, never sees a photo or a message thread, and hears nothing until at least three people independently report the same face. Reporting stops being a personal risk, and Security gets a corroborated signal without surveilling anyone. ## 2. Cryptographic Architecture & Data Boundary Counterlure Enterprise uses a **Dual-Tier Clustering** model: ``` ┌─────────────────────────────────────────────────────────────────────────┐ │ EMPLOYEE'S LOCAL MACHINE │ │ │ │ Photo (JPG/PNG/WebP) ──► YuNet Face Detection + SFace 128-d Vector │ │ [Photo NEVER leaves (SHA-256 pinned ONNX models, local CPU) │ │ employee's machine] │ │ │ ▼ │ │ OpenPGP Encrypted to Pinned Server Key │ │ + Fixed-Size Padding (16 KB request envelopes) │ │ + Routed over Tor v3 Onion Service (no client IP) │ └───────────────────────────────────────────────┬─────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────────────────────────┐ │ ORGANIZATION PRIVATE NAMESPACE (Tier 1) │ │ │ │ • Isolated strictly to your org_id (invisible to public & other orgs) │ │ • Stores the 128-d face vector, model, context, day & random device │ │ • NO employee name, NO corporate email, NO photo, NO IP address │ │ • Single reports (1 or 2 staff) remain private & invisible │ └──────────────────────────┬──────────────────────────────────────────────┘ │ Only when 3+ DISTINCT anonymous devices report the same face │ ┌────────────────┴────────────────┬─────────────────────────────┐ ▼ ▼ ▼ ┌───────────────────┐ ┌─────────────────────────┐ ┌────────────────────┐ │ REVIEWER GATE │ │ ORG SECURITY TEAM │ │ REPORTING STAFF │ │ (Tier 2) │ │ (Email + /org Portal) │ │ (CLI org inbox) │ │ │ │ │ │ │ │ Counterlure human │ │ Alert: ORG-XXXX │ │ Private message: │ │ reviewer decides │ │ Distinct reports: 3+ │ │ "Your org appears │ │ whether the case │ │ Severity: ELEVATED/HIGH │ │ to be under │ │ joins the wider │ │ │ │ attack — please │ │ global pool │ │ ZERO photos, ZERO names │ │ contact your │ │ │ │ ZERO employee IDs │ │ security team." │ └───────────────────┘ └─────────────────────────┘ └────────────────────┘ ``` ### Data-Flow Matrix | Data Type | Leaves Employee Machine? | Stored by Counterlure? | Visible to Employer (`/org`)? | |---|---|---|---| | Employee name / corporate email | **Never** | **Never** | **Never** | | Employee IP address | **Never** (Tor onion default) | **Never** | **Never** | | Face photo / image bytes | **Never** (in `org check` & `org report`) | **Never** | **Never** | | Photo metadata (EXIF, GPS position, device model and serial, capture time, file name) | **Never**: no image or file is sent, only numbers computed from the pixels | **Never** | **Never** | | 128-d face vector, model version, approach context & attestation | Yes (OpenPGP encrypted, 16 KB padded) | Yes (isolated to org until threshold) | **Never** | | Anonymous random device token | Yes (OpenPGP encrypted) | SHA-256 hash + enrollment/last-seen day | **Never** (aggregate count only) | | Single / uncorroborated report (1–2 staff) | Vector + context + token | Private org namespace | **Never** | | Corroborated campaign (3+ distinct staff) | — | Counterlure reviewer decides on wider pool | **Case ref (`ORG-XXXX`), count, severity, dates only** | --- ## Why There Is No Sales Team Counterlure runs unattended, the enterprise tier included: no sales calls, demos, account managers, or named staff. This is a security decision, not a missing department. * **Operating this tool makes us a target.** Counterlure exposes coordinated recruitment and honeypot campaigns, and the people behind those campaigns have every reason to identify, pressure, or compromise whoever runs the register. A sales team is a list of names, faces, phone numbers, and calendars, which is the attack surface this product exists to shrink. * **Opsec starts with staying anonymous.** Nobody behind Counterlure is identified publicly, and nobody will ask to meet you. Payment is made on public blockchains rather than by card or bank transfer for the same reason: no card processor or bank account ties the register to a person. Blockchain transfers are public and traceable, so this protects the operators' identities; it does not make your payment private. * **What you get instead.** Every step is self-serve: apply and verify your domain at , then pay, enroll staff, and triage alerts in the portal at . A receipt is emailed when the license is paid. Questions go to `overwatch@counterlure.com`. Rather than trusting a salesperson, have your AppSec team audit this Apache-2.0 client (section 6). ## Licensing Licenses are one-time and lifetime, sized by seats. A seat is one enrolled staff device or one unused enrollment code; revoking a device or cancelling a code frees its seat. | Size | Seats | Price | Lifetime per seat | Introductory offer (paid by December 31, 2026) | Offer per seat | |---|---|---|---|---|---| | Small enterprise | up to 25 | $50,000 | $2,000 | $25,000 | $1,000 | | SME | up to 200 | $250,000 | $1,250 | $125,000 | $625 | | Large organization | up to 5,000 | $500,000 | $100 | $250,000 | $50 | Per-seat figures assume every seat in the license is used. Moving to a bigger size later costs only the difference, at the prices of the day. Choose a size and pay inside the portal. ## 3. Security Admin Onboarding & Portal Guide (`/org`) > **No clickable auth links:** Counterlure never sends clickable verification or sign-in links by email. Corporate email checks and first-time portal logins use plain-text 6-digit codes, so corporate email gateways (Proofpoint, Mimecast, Defender Safe Links) cannot consume tokens or flag auth messages as link phishing. ### Step 1 — Corporate Application & 6-Digit Email Verification 1. Apply at using an authorized **corporate email address** matching your organization's domain (consumer/free-mail domains are rejected). 2. Enter the **6-digit verification code** sent to your corporate inbox directly on the `/enterprise` page to confirm domain ownership. 3. Once approved by Counterlure, you will receive an activation notice for the **Organization Security Portal** at . ### Step 2 — First Sign-In, Mandatory Authenticator (TOTP) & License Activation 1. Open and enter your verified corporate email. 2. **First Login (Email OTP):** Enter the one-time **6-digit code** delivered to your corporate inbox (expires in 15 minutes). 3. **Mandatory Authenticator Provisioning (TOTP):** Immediately after email verification, scan the locally generated QR code (or copy the manual Base32 setup key) into your authenticator app (1Password, Microsoft Authenticator, Google Authenticator, or Authy) and confirm with a 6-digit code. 4. **All Subsequent Sign-Ins:** Entering your corporate email prompts directly for your **6-digit authenticator code** (no email OTP is sent again). Sessions use `HttpOnly`, `SameSite=Strict`, `Secure` cookies; 5 consecutive failed TOTP attempts trigger a 15-minute lockout and time-steps cannot be replayed. 5. **License Activation:** On first activation, choose a license size and complete the on-screen payment step inside `/org` to unlock your Command Center and single-use employee CLI enrollment codes. To add seats later, use **Get more seats** in the portal. > **Lost Authenticator Access?** Email `overwatch@counterlure.com` from your verified corporate address to request an authenticator reset. Counterlure Support will clear the TOTP secret, revoke active sessions, and re-enable one-time email verification so you can provision a new authenticator app. ### Step 3 — Creating and Handing Out Single-Use Enrollment Codes Inside `/org`, the **Staff Enrollment Codes** panel provides: - **One-time enrollment codes** (e.g. `CLORG-XXXX-XXXX-XXXX-XXXX`): create one code per employee. Codes are shown once when created; Counterlure stores only a hash and deletes each code the moment it is redeemed, so nothing links a code to the device it enrolled. - **Aggregate enrolled device count** (total only, never tied to individuals) - **Cancel unused codes** and **Revoke all devices** controls (in case an unused batch leaks) - **Pre-filled Staff Memo** under the **Guides & Staff Rollout** tab > **Operational Security — Use a Personal Device:** Advise staff to install and run `counterlure-cli` on a **personal device on a personal network**, not on a company-managed laptop. Corporate-managed computers, endpoint agents (EDR/MDM), shell history, and corporate networks can observe the installation, command-line history, and Tor traffic even though Counterlure itself collects no employee identity. Give each employee one single-use code directly rather than deploying the CLI through corporate MDM or posting shared codes in Slack/Teams. ### Step 4 — Threat Posture & Alert Triage The `/org` Command Center displays your live threat posture: - **ALL CLEAR** (`none`): No face has reached the corroboration threshold. - **ELEVATED**: 1 active coordinated campaign (3 distinct staff). - **HIGH**: 2+ active campaigns, or 4+ distinct staff targeted by the same face. - **CRITICAL**: 3+ active campaigns, or 6+ distinct staff targeted by one face, or 10+ total targeted reports across active campaigns. Each escalated alert displays its reference (`ORG-XXXX`), distinct report count, first/last seen dates, and status (`promoted` → `acknowledged` → `resolved`). ### Step 5 — Incident Response Playbook (When an Alert Fires) 1. **Do not try to identify who filed the report.** Attempting to correlate network logs or endpoint telemetry breaks staff trust and stops future reporting. 2. **Wait for voluntary disclosures and make coming forward safe.** The moment an alert fires, Counterlure privately notifies every reporting employee via `counterlure org inbox` advising them to contact your security team. 3. **Issue a calm internal advisory** (for `HIGH` or `CRITICAL`): Let staff know Security has detected a coordinated external approach campaign and provide a confidential, no-blame channel to speak with your team. 4. **Coordinate with Counterlure:** Quote your `ORG-XXXX` reference when requesting cross-industry context from Counterlure analysts. --- ## 4. Employee Quick-Start Guide ### Installation (Node.js 22+ and Tor) ```bash git clone --branch v0.4.3 --depth 1 https://github.com/counterlure/counterlure-cli.git cd counterlure-cli npm ci npm link ``` Ensure Tor is running locally (Tor Browser open, or the `tor` service on port 9050/9150). Then get the two face models, ideally yourself, before first use (next section). ### Getting the face models The CLI runs two open models from [OpenCV's model zoo](https://github.com/opencv/opencv_zoo) on your own computer: YuNet finds faces, SFace turns a face into the 128 numbers that are compared. They are not bundled here, and **the tool never downloads them without asking you first.** | Model | File name | Size | SHA-256 | |---|---|---|---| | YuNet face detector (MIT) | `face_detection_yunet_2023mar.onnx` | 232,589 bytes | `8f2383e4dd3cfbb4553ea8718107fc0423210dc964f9f4280604804ed2552fa4` | | SFace face recognizer (Apache 2.0) | `face_recognition_sface_2021dec.onnx` | 38,696,353 bytes | `0ba9fbfa01b5270c96627c4ef784da859931e02f04419c829e83484087c34e79` | The hashes are pinned in [lib/faceprint.js](lib/faceprint.js). A file is accepted only if its hash matches, so it makes no difference where you got it. When a command needs the models, the tool does this, in order: 1. **It looks for copies already on your computer**: in its models folder, then under the exact file names above in the current folder and in your `Downloads` folder. A copy whose hash matches is used with no network request. 2. **If any are still missing, it stops and shows you** the table above, the official links, and how to get the files yourself. 3. **It downloads only if you type `yes`.** The download goes over the same route as everything else (Tor by default), only from GitHub, and any file that fails the hash is deleted before it is ever loaded. In scripts, where there is nobody to ask, nothing is downloaded unless you pass `--fetch-models`. Run `counterlure models` at any time to see which models are installed and verified. It makes no network request. #### Downloading the models yourself (recommended) Fetching the files yourself means the Counterlure tool never makes the request. You choose when, from where and over which connection, and the download looks like anyone else getting OpenCV's models. **Step 1. Download both files.** Use one of these methods. *In a browser (Tor Browser works):* open each model's page and use GitHub's **Download raw file** button (the arrow icon above the file view). - https://github.com/opencv/opencv_zoo/blob/main/models/face_detection_yunet/face_detection_yunet_2023mar.onnx - https://github.com/opencv/opencv_zoo/blob/main/models/face_recognition_sface/face_recognition_sface_2021dec.onnx *With curl over Tor* (macOS, Linux, or Windows 10 and later; use port 9150 if Tor Browser is what is running): ```bash curl -L --socks5-hostname 127.0.0.1:9050 -o face_detection_yunet_2023mar.onnx \ https://github.com/opencv/opencv_zoo/raw/main/models/face_detection_yunet/face_detection_yunet_2023mar.onnx curl -L --socks5-hostname 127.0.0.1:9050 -o face_recognition_sface_2021dec.onnx \ https://github.com/opencv/opencv_zoo/raw/main/models/face_recognition_sface/face_recognition_sface_2021dec.onnx ``` Drop `--socks5-hostname 127.0.0.1:9050` to download over your normal connection. *In Windows PowerShell* (normal connection): ```powershell Invoke-WebRequest -OutFile face_detection_yunet_2023mar.onnx https://github.com/opencv/opencv_zoo/raw/main/models/face_detection_yunet/face_detection_yunet_2023mar.onnx Invoke-WebRequest -OutFile face_recognition_sface_2021dec.onnx https://github.com/opencv/opencv_zoo/raw/main/models/face_recognition_sface/face_recognition_sface_2021dec.onnx ``` *With git:* the model zoo stores its `.onnx` files with Git LFS. Install [git-lfs](https://git-lfs.com) first. Without it, a clone gives you small pointer files of about 130 bytes, and they will not match the hash. A sparse checkout avoids pulling the whole zoo: ```bash git lfs install GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1 --filter=blob:none --sparse https://github.com/opencv/opencv_zoo.git cd opencv_zoo git sparse-checkout set models/face_detection_yunet models/face_recognition_sface git lfs pull --include="models/face_detection_yunet/face_detection_yunet_2023mar.onnx,models/face_recognition_sface/face_recognition_sface_2021dec.onnx" ``` Any mirror you trust works too, such as an internal artifact store. Only the hash counts. **Step 2. Check the hashes yourself (optional; the tool checks again).** Compare the output with the table above. ```bash sha256sum face_*.onnx # Linux shasum -a 256 face_*.onnx # macOS ``` ```powershell Get-FileHash -Algorithm SHA256 face_*.onnx # Windows PowerShell certutil -hashfile face_recognition_sface_2021dec.onnx SHA256 # Windows cmd, one file at a time ``` **Step 3. Hand them to the tool.** Use any one of these: ```bash counterlure models import ~/Downloads/face_detection_yunet_2023mar.onnx ~/Downloads/face_recognition_sface_2021dec.onnx counterlure models import ./opencv_zoo/models # a folder: every .onnx file in it is checked ``` `import` identifies each file by its hash, so renamed files (`yunet.onnx`, `sface (1).onnx`) are fine. It copies the matches into the models folder and leaves everything else alone, reporting why each one was skipped. You can also skip `import` and leave the files under their original names in your `Downloads` folder, or in the folder you run the tool from; it will find them there. Or copy them into the models folder yourself: - Windows: `%APPDATA%\counterlure\models` - macOS and Linux: `~/.config/counterlure/models` (or `$XDG_CONFIG_HOME/counterlure/models`) - Anywhere else, by setting `COUNTERLURE_MODELS=/path/to/folder` **Step 4. Confirm.** ```bash counterlure models # verified face_detection_yunet_2023mar.onnx # verified face_recognition_sface_2021dec.onnx # Both models verified in ... ``` #### Letting the tool download them ```bash counterlure models --download # shows the sources and hashes, then asks: type yes counterlure check photo.jpg --fetch-models # consent in advance, e.g. in a script ``` If you answer anything other than `yes`, nothing is fetched and the command stops with the instructions above. **For security teams:** you can place verified copies on an internal mirror or artifact store and tell staff to fetch from there; `counterlure models import` accepts them on the hash alone. Do not push them to staff devices through MDM (see the personal-device note in section 3); a shared download link they fetch themselves is enough. ### Everyday Commands for Staff ```bash # 1. One-time anonymous device enrollment (each code works once; add --replace to overwrite an existing enrollment) counterlure org enroll CLORG-XXXX-XXXX-XXXX-XXXX # 2. Screen a suspicious contact's photo against BOTH your org's alerts and the global pool # (Photo stays on your machine; only the 128-d face vector and device token are sent) counterlure org check contact.jpg # 3. File an anonymous report inside your org's private namespace # (Sends the 128-d face vector, model version, context, attestation, and device token; no photo or identity) counterlure org report contact.jpg --context work-or-business # Contexts: dating-app, social-media, event-or-conference, work-or-business, introduced, other # Add --dry-run to inspect what would be sent without sending anything. # 4. Check your private CLI inbox for coordinated-attack alerts counterlure org inbox # 5. Check aggregate org threat status & unread private alerts counterlure org status # 6. Withdraw a report at any time using the receipt you were given counterlure org withdraw CLO-XXXX-XXXX-XXXX-XXXX # 7. Deactivate this device on the server and remove the local credential (add --withdraw to also remove reports) counterlure org leave ``` > **Shortcut:** When a machine is enrolled in an organization and not signed in to a personal Counterlure account, `counterlure check PHOTO`, `counterlure inbox`, and `counterlure whoami` automatically use the anonymous organization device. --- ## 5. Internal Staff Rollout Memo Template > **Subject:** Optional Anonymous Tool to Screen Suspicious External Contacts (Counterlure CLI) > > Team, > > Like other technology and R&D organizations, our staff are occasionally approached outside work — at conferences, on LinkedIn, messaging apps, or dating platforms — by actors probing for technical or strategic information. > > We have deployed **Counterlure Enterprise** so anyone can check or report a suspicious approach without sharing personal details with the company. It is an open-source CLI that lets you: > > 1. **Screen** a suspicious contact's photo against known global cases and active campaigns (`counterlure org check photo.jpg`). > 2. **Report** an uneasy approach anonymously (`counterlure org report photo.jpg`). > > **How your privacy is enforced in code:** > - **No employee identity:** The CLI never asks for your name, corporate email, or SSO login. > - **No photo uploads:** Photos stay on your machine. Only a 128-number mathematical face vector is transmitted, encrypted with OpenPGP over Tor. > - **No single-report visibility:** Security never sees single reports, photos, or who used the tool. Security is notified only if **3 or more distinct colleagues** independently report the same face — and you receive a private alert in `counterlure org inbox` so you can decide whether to contact Security. > > **Setup:** > 1. Review or install the open-source CLI: > 2. Enroll anonymously: `counterlure org enroll ` > > — *Your Security Team* --- ## 6. AppSec Code Audit Checklist Your AppSec team can audit the entire client in under 20 minutes before approving internal deployment: | File | What to verify | |---|---| | `bin/counterlure.js` | `orgReportCmd` and `orgCheckCmd` transmit **only** `face.embedding` (128 floats) — never raw image buffers, filenames, usernames, or environment variables. Local credential `org.json` is written `0600` and bound to the pinned server key fingerprint. | | `lib/faceprint.js` | Local YuNet + SFace ONNX inference; SHA-256 hashes of model weights are hardcoded and verified before loading. | | `lib/models.js` | Model downloads only follow redirects to GitHub and delete any file failing SHA-256 verification. | | `lib/proto.js` | End-to-end OpenPGP encryption to `SERVER_FINGERPRINT` (`lib/server-key.js`), single-use nonces, and 4 KB fixed-size payload padding. | | `lib/route.js` | Defaults strictly to Counterlure's Tor v3 `.onion` service; never silently falls back to clearnet. | | `test/*.test.js` | Run `npm test` locally to verify all 24 transport, padding, format, and Tor isolation tests. |