~/talk

Finetuning Large Language Models (LLMs) for Security Log Detections

Talkat BSidesSF 2024 · 2024-05-04..05-05· [large-language-models, security]
links:none on file
slides:none on file

Shows that an open-source LLM can be fine-tuned to label command-line obfuscation as yes/no using a small curated dataset, huggingface tokenizers and trainer, and llama 2 7B with 4-bit quantization so the 7B model drops from ~28GB to ~3.5GB of GPU memory. Uses synthetic and real command samples, template prompts with max_new_tokens=1, and LoRA parameter-efficient fine-tuning; fine-tuning runs in minutes–hours and improves binary detection but adds GPU cost and may be overkill for simple classifiers.

AI-written summary · about

  1. 0:00Introduction and poll
  2. 1:46Who I am and agenda
  3. 2:08Traditional security log detections
  4. 3:38Command obfuscation detection
  5. 5:04Other detection techniques overview
  6. 6:06Logistic regression approach
  7. 8:12Deep learning for classification
  8. 9:36Why fine-tune LLMs
  9. 11:41Fine-tuning process overview
  10. 13:26Code walkthrough setup
  11. 16:20Testing model before fine-tuning
  12. 17:27Parameter efficient fine-tuning
  13. 19:10Advantages of fine-tuning
  14. 20:54Trade-offs of fine-tuning
  15. 22:19Applying to other use cases
  16. 23:24Closing thoughts and resources
  17. 23:44Q&A on AI in security
~/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.