Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ and the project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.

## [Unreleased]

## [3.1.2] — 2026-09-29

### Changed
- Explorer **Findings are newest first.** Severity tiers stay (Act now,
Serious, Worth a look, Minor), but inside each tier the kind of finding
seen most recently comes first, and inside a kind the latest occurrence
is shown first. Findings with no timestamp (configuration, file content)
follow the dated ones.

## [3.1.1] — 2026-09-29

Precision pass on a real machine's case (2,495 findings): CRITICAL 19 → 14,
Expand Down
3 changes: 3 additions & 0 deletions internal/serve/shortcuts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ func TestShortcutsMatchPhysicalKeys(t *testing.T) {
t.Errorf("ui.html lost %q", want)
}
}
if !strings.Contains(ui, "b.latest.localeCompare(a.latest)") {
t.Error("findings groups are no longer ordered newest first within a tier")
}
if strings.Contains(ui, "e.key.toLowerCase()==='k'") {
t.Error("layout-dependent Cmd+K check is back")
}
Expand Down
8 changes: 6 additions & 2 deletions internal/serve/ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,12 @@
if(f.session) g.sessions.add(f.session); if(f.class!=='building_block') g.routine=false;
});
const CR={HIGH:3,MEDIUM:2,LOW:1};
S.groups=Object.values(m).map(g=>{ g.items.sort((a,b)=>sevOf(b.severity).r-sevOf(a.severity).r||(CR[b.confidence]||0)-(CR[a.confidence]||0)||String(b.timestamp).localeCompare(String(a.timestamp))); g.p=plain(g.items[0]); if(g.routine) g.p.kind='routine'; return g; })
.sort((a,b)=>sevOf(b.sev).r-sevOf(a.sev).r||(CR[b.conf]||0)-(CR[a.conf]||0)||b.items.length-a.items.length);
// Newest first: within a severity tier, the kind seen most recently comes
// first, and inside a kind the latest occurrence is shown first. Undated
// findings (configuration, file content) sort after dated ones.
const ts=x=>String(x.timestamp||'');
S.groups=Object.values(m).map(g=>{ g.items.sort((a,b)=>ts(b).localeCompare(ts(a))||sevOf(b.severity).r-sevOf(a.severity).r||(CR[b.confidence]||0)-(CR[a.confidence]||0)); g.latest=g.items.reduce((t,x)=>ts(x)>t?ts(x):t,''); g.p=plain(g.items[0]); if(g.routine) g.p.kind='routine'; return g; })
.sort((a,b)=>sevOf(b.sev).r-sevOf(a.sev).r||b.latest.localeCompare(a.latest)||(CR[b.conf]||0)-(CR[a.conf]||0)||b.items.length-a.items.length);
}
const tierOf=g=>g.p.kind==='routine'&&sevOf(g.sev).r<=2?'background':(g.sev==='CRITICAL'||g.sev==='HIGH')?'attention':g.sev==='MEDIUM'?'look':'background';
const reviewed=g=>g.items.filter(f=>verdictOf(f.key)).length;
Expand Down
2 changes: 1 addition & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package version

// Version is the collector version. Overridable at build time via
// -ldflags "-X github.com/efij/AgentDFIR/v3/internal/version.Version=vX.Y.Z".
var Version = "3.1.1"
var Version = "3.1.2"

// ADFIRVersion is the evidence package format version this binary writes.
//
Expand Down
Loading