~/talk

Lex Sleuther - A Novel Approach to Script Language Detection

Talkat BSidesSF 2025 · 2025-04-26..04-27· [security, compilers-and-language-design]
links:none on file
slides:none on file

Tool called Lex Sleuther lexes files with six lexers and turns token counts into token-count vectors, then learns a mapping to six language scores via simple linear regression. It targets only six common script languages, is lightweight and open source (cargo install), and improves pipeline script detection so combined systems reach about 97% script efficacy for executable scripts at scale while remaining far cheaper and faster than heavyweight models.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 2:27Problem with file type detection
  3. 5:58Existing tools and their flaws
  4. 7:26Introducing Magika
  5. 8:28Why build Lex Luthther
  6. 10:12Narrowing the scope
  7. 12:00Lexing instead of parsing
  8. 13:47How Lex Luthther works
  9. 16:54Training the model
  10. 17:36Results and CLI demo
  11. 18:40Performance evaluation
  12. 19:23Comparison with Magika
  13. 20:26Integration into pipeline
  14. 21:50Open sourcing Lex Luthther
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.