liveBook · Manning

Machine learning

As explained in Cyber Threat Hunting

A machine learning algorithm is a computational procedure that learns from input data to generate a model or produce data-driven outputs.

Machine learning lets computers learn from data and improve at tasks without receiving fixed rules. An algorithm processes records to produce a model, which can predict or identify similarities. section 8.1

For threat hunting, machine learning reverses explicit detection logic: data reveals patterns and anomalies that may deserve investigation. Unsupervised learning finds hidden structures without predefined labels. section 8.0 section 8.1

A practical machine-learning investigation follows a repeatable path:

  • Understand and process the source data before attempting to build a model. section 8.0 section 8.1
  • Transform records into useful features, selecting relevant fields and encoding non-numeric values when necessary. section 8.0
  • Apply an unsupervised algorithm such as k-means to generate a model from the prepared data. section 8.0 section 8.1
  • Interpret the model’s outputs as clues, then investigate anomalies for possible malicious activity. section 8.0

Beaconing to a trusted destination

A threat hunter can use unsupervised learning to examine network connection events for anomalies in suspected beaconing. Example signals include 845 exchanged bytes and TLS client-proposed cipher suites that differ from legitimate Dropbox connections. section 8.1

Figure 8.1 Threat hunting with unsupervised machine process

Use the process diagram to connect data preparation, feature construction, model building, and threat-hunting interpretation. section 8.0

How Cyber Threat Hunting covers it

How deep it goes
Explains algorithms, models, unsupervised learning, data preparation, features, and interpretation while stopping short of advanced data-scientist training.
Examples
Uses network connection events, beaconing to trusted destinations, Dropbox traffic, exchanged bytes, and TLS cipher suites as examples.
What it assumes
Assumes a threat-hunting context but teaches core machine-learning concepts without requiring data-science expertise.
What you can do after
Apply it via existing Python libraries to prepare data, build unsupervised models, and interpret anomalies during threat hunting.
How it connects
Connects machine learning with unsupervised learning, k-means, features, anomaly detection, network traffic analysis, and threat hunting.

Also explained in

Compare how 42 books explain machine learning →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Cyber Threat Hunting. The section links point to the parts of the book it draws on.