AI Cybersecurity Lab

Intrusion and anomaly detection, malware analysis, threat intelligence, phishing, security logs and incident response: defensive experiments that really compute in your browser on synthetic data, with algorithms, datasets, projects and quizzes.

28interactive experiments

1-D convolutional networks

Algorithm Library · Algorithm Deep Learning Explained only

This algorithm is explained only: this version has no in-browser training experiment for it and shows no performance numbers.

The idea

Applies convolutional filters over a sequence (bytes/packets) to extract local patterns.

The problem it addresses

Learning from raw sequences without hand-built features.

Data it needs

Byte or packet sequences.

Equations

y_t=\sigma\Big(\sum_{k} w_k x_{t+k}+b\Big)

Steps

  1. Encode the sequence
  2. Apply convolutions
  3. Pool
  4. Classify

Pseudocode

cnn-1d.txt
# مخطط شبه شفري (لا يُنفَّذ في المختبر)
z = pool(relu(conv1d(x, W)))
p = sigmoid(w @ z)

Strengths

  • Learns its own features

Limitations

  • Needs a lot of data
  • Vulnerable to adversarial examples

Uses in cybersecurity

  • Byte-level file analysis
  • Packet flows

Common pitfalls

  • Not executed in this lab; explained for the concept only.

Suggested datasets

See also

References

  1. Arp, Quiring, Pendlebury, Warnecke, Pierazzi, Wressnegger, Cavallaro, Rieck (2024). Pitfalls in Machine Learning for Computer Security. Communications of the ACM 67(11), pp. 104-112. doi:10.1145/3643456