sqlinsight-pro/src/SQLInsight.Repository/Migrations
Søren Eggert Lundsteen Olsen 4ba7e5195e Privilege audit: sysadmin and server roles with AD unfolding
Collects members of the fixed server roles and CONTROL SERVER every 15
minutes with login type, disabled state and SQL login password policy.
Windows groups are unfolded recursively through Active Directory on a
Windows agent (cached, 20 s timeout, failures shown with the reason).
Changes since the previous collection are logged, and who/when is read
from the default trace (event 108) when the agent has the optional
ALTER TRACE; authors that only reach the buffered trace later are filled
in at the next collection. The first collection is the baseline.

New rules SQLI-SEC-001 (new privilege, High for sysadmin/securityadmin/
CONTROL SERVER) and SQLI-SEC-002 (more sysadmins than the limit, default
3). Names are sensitive evidence and never in titles or subjects.

Web: /instanser/{navn}/rettigheder and /rettigheder with change log by
period, alert banner on the instance page and overview, and an audit
PDF (/rapporter/rettigheder.pdf) linked from Rapporter.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 08:39:56 +02:00
..
0001_initial.sql Fase 1: local repository with finding tracking, time series and retention 2026-09-29 06:23:38 +00:00
0002_hub_sync.sql Fase 3: findings sync from agent to hub (queue, retry, data minimization) 2026-09-29 08:35:22 +00:00
0003_update_status.sql Fase 3: signed updates of rule packs and the application 2026-09-29 09:19:41 +00:00
0004_hub_insights.sql Fase 4: experience across customers 2026-09-29 10:33:37 +00:00
0005_support_cases.sql Customers file support cases in SQLInsight Web and follow their status 2026-10-01 11:34:06 +02:00
0006_query_stats.sql Top SQL: collect what the heaviest statements use every 5 minutes 2026-10-01 15:46:45 +02:00
0007_disk_volumes.sql Disk speed per drive: IOPS, MB/s and latency 2026-10-02 08:03:11 +02:00
0008_configuration_changes.sql Configuration page with change log 2026-10-02 08:12:26 +02:00
0009_privilege_changes.sql Privilege audit: sysadmin and server roles with AD unfolding 2026-10-02 08:39:56 +02:00