RAM usage, the Problems README, Recovery, Repairs, Rules Report, Security Report, Snap, Speed, Summary and Tests now open with what the feature is, links to read more, step-by-step use, how each number is computed and how it is implemented, and end with the commits that built it. Corrected from the code: the automatic board repair no longer un-binds lists (since #6515); Recovery's rule email section has Review, Resend, Mark as sent and Drop, and a section for legacy rule emails; Delete is under Settings; the Product name is in Settings / Appearance; Speed rows fold per kind of request, not per path; the RAM row detail has WeKan RSS and no load; the snap command falls back to MONGO_URL and prints the Databases section. Thanks to xet7 !
11 KiB
Admin Panel / Problems / Security Report
What it is
Every attempt a security guard refused or noticed: what it was, how severe,
who tried it, from where and how many times. When WeKan blocks, cleans,
rate-limits or detects something that only an attack would do, it writes one
summary row here, so an administrator can see that somebody tried and not only
that the hole is closed. Address: /admin/problems/security-report. Site
administrators only. It is called Security Report, not Security, because Admin
Panel / Settings / Security is the pane of security
switches.
Read more
- Intrusion detection system on Wikipedia - recording and reporting attempted attacks, which is what this pane does inside WeKan.
- Brute-force attack on
Wikipedia - the
brute-forcerows (login, invitation, account recovery, passwordless code requests). - CWE - the Common Weakness Enumeration, whose ids each catalog key carries.
- WeKan Hall of Fame - the names in the Name column.
- In WeKan: Security remediation design, Meteor 3.5.3 security fixes, Design.md, Summary.md.
How to use it
Read the report
- Log in as a site administrator.
- Click your avatar or username at the top right and choose Admin Panel.
- Click the Problems tab.
- In the left menu, under Reports, click Security Report.
- Read the rows, newest first. Attempts says how many times a row happened; Detail says what the guard saw.
- Type a name, category, source, username or address in the search box to filter as you type - for example an address, to see everything that address tried.
- Click a username to open the Edit user popup for that account.
Re-enable an account that was disabled by a security event
- Open Admin Panel → People.
- Find the account and enable its login again (People).
Acknowledge or clear the report
- Open Problems → Summary.
- Tick Admin Panel → Problems → Security Report.
- Click Acknowledge to reset the new-problem count, or Clear to delete the rows (Summary.md).
How the numbers are calculated
| Number | How it is computed |
|---|---|
| Attempts | the row's count: how many occurrences were folded into it (server/lib/eventLogFold.js). Empty when it happened once. |
| One row | the identity is stream, name (bleed), category, action, source, severity and CWE (models/lib/eventLogSummary.js). The user and address are not part of it; they describe the most recent occurrence, and a capped per-user and per-address tally is kept inside the row. |
| Date and time | the most recent occurrence (at). |
| Severity | from the catalog key in models/lib/securityCategories.js, unless the guard passes its own. |
| Passwordless request limit | 5 requestLoginTokenForUser calls per source address per 60 seconds (DDPRateLimiter rule in server/lib/oauthProviders.js); each refused call is recorded as brute.passwordless-request, name Passwordless, blocked, severity high. |
| Account disabled | when the row is blocked, of severity high or critical, names a logged-in user, and its catalog key does not set blocksAccount: false (server/lib/blockOnSecurityEvent.js). |
| New-problem count on Summary | rows newer than the last acknowledgement whose severity is not info (models/lib/eventLogProblems.js). |
| Rows per page | 10. |
| Retention | rows older than EVENTLOG_RETENTION_DAYS (default 90; 0 keeps them for ever) are deleted, checked once a day for the whole installation. |
How it works in WeKan
Where the rows come from
The security stream of the eventlog collection (models/eventLog.js).
Every runtime guard reports through server/lib/securityLog.js
when it blocks, sanitizes, rate-limits or detects something, using a key from
the catalog in models/lib/securityCategories.js (category, Hall of Fame name,
severity, CWE). Besides the guards, this stream also receives:
- the canaries - operations WeKan never issues, such as a database canary
marked by FerretDB (
server/lib/databaseProblems.js); - the daily filesystem integrity scan's findings (
integrity.file, StorageBleed,server/lib/fileIntegrityScan.js) and the hourly change history audit (integrity.history, HistoryIntegrity,server/lib/historyIntegrityScan.js); - denied passwordless code requests after five requests per source address in one minute;
- the Meteor 3.5.3 refusals, recorded as Meteor DDP, Meteor allow-deny, Meteor dynamic-import and Meteor OAuth (details);
- ImportExportValidation (an import or export refused by the transfer boundary) and ImportExportFailure (one that failed for another reason, recorded as detected, never as an attempt).
Each problem is one row that accumulates (server/lib/eventLogFold.js): the
kind of thing that happened is the row, and the user name and address describe
its most recent occurrence (Design.md).
Only an attempt is recorded, never ordinary use: a guard that a legitimate user
can reach does not write here, or writes without disabling the account
(blocksAccount: false in its catalog key).
Consequence for the account
When a row is blocked, of severity high or critical, names a logged-in
user and its catalog key does not say otherwise, that account is disabled
(loginDisabled) with the reason "Attempted at while logged
in" (server/lib/blockOnSecurityEvent.js). The reason, the name, the source
and the address are kept in the user's services.securityBlock. The address is
recorded, never blocked. An administrator re-enables the account in Admin Panel
/ People.
The table
The shared table page, newest row first, 10 rows a page, read-only:
| Column | Holds |
|---|---|
| Date and time | when it last happened |
| Category | the guard's class, for example ssrf or integrity |
| Name | the Hall of Fame name (...Bleed) or another fixed name |
| Severity | info, low, medium, high or critical |
| Action | blocked, sanitized, rate-limited, remediated, detected or failed |
| Source | the guard or module that recorded it |
| Username | the account, as it was called at the time; click it for the Edit user popup |
| IPv4, Location, IPv6, Location (IPv6) | the address, resolved with HTTP_FORWARDED_COUNT, and a location only when a trusted proxy supplies one (models/lib/addressReportColumns.js) |
| Attempts | how many times this row happened; empty when once |
| Detail | what the guard said |
The search box filters as you type, case-insensitively, over category, name,
source, detail, username and address. The rows come from the admin-only
eventLogCount and eventLogPage methods.
Nothing is acknowledged here: the new-problem count is acknowledged or the
stream cleared on Summary. Rows older than
EVENTLOG_RETENTION_DAYS (default 90) are deleted daily. The same rows are on
GET /api/admin/problems/security
(REST API).
Tests
- tests/securityLog.test.cjs - the logger and its wiring.
- tests/securityKeyWiring.test.cjs - every key a guard uses is in the catalog.
- tests/hallOfFameProblemsCoverage.test.cjs - every Hall of Fame name that can be detected at runtime has a key, and the rest are listed with a reason.
- tests/problemsFalseBlocks.test.cjs and tests/jamBleedVictimBlock.test.cjs - ordinary use and a guessed account are never disabled.
- tests/passwordlessMeteor36.test.cjs - the passwordless request limit is recorded.
- tests/eventLogSummary.test.cjs - one row per problem, with the capped tally.
Related
- Security remediation design
- Hall of Fame - the names in the Name column.
Commits
- A row's address, location and user describe one occurrence
- Clear button and 90-day retention for the problem streams
- AuthBleed attempts are recorded
- A failed import or export disables an account only when it was an attempt
- An ordinary refused edit on one's own board no longer disables the account
- Record the Meteor 3.5.3 security refusals
- Record only attempts, so legitimate users are not disabled
- A login lockout never disables the account being guessed
- Rate-limit passwordless code requests per address and report the denials
- Show the origin context (address, location) in every event report
- Disable the account of a logged-in user who attempts an attack
- One summary row per problem, with who and how often
- Canary tokens: who tried to override permissions, and from where
- Store the security stream in the WeKan database
- First security loggers
- Add the Problems page with its Security pane