Skip to content
Email Olsi
Loading

Olsi Shehu

AI security researcher

I build models that detect attacks, and the software that puts them to work.

  • PhD candidate, International Burch University
  • Lecturer, Canadian Institute of Technology

This is where I work: applied AI, with special attention to the security of medical data.

A small hospital network

A small hospital network: medical devices send readings to a message broker, the health-records application talks to its patient database, and one attacker inside the network can reach all three services. Each service has a capture point.

Medical devicesVital signs, every few secondsMQTTMessage brokerCollects the device readingsMQTTHealth recordsThe application staff useHTTPSPatient databaseWhere the records liveSQLAttackerMe, with scriptsinside the networkOne isolated test networkMedical devicesVital signs,every few secondsMQTTMessage brokerCollects thedevice readingsMQTTHealth recordsThe applicationstaff useHTTPSPatient databaseWhere therecords liveSQLAttackerMe, with scriptsinside the networkOne isolated test network
  • Device readings
  • Records and database traffic
  • Attack traffic
  • Capture point: every packet is kept

To learn how a network is attacked, I build a small one in containers: devices, a broker, health records, a database. Isolated. No real patient data.

An attack comes in steps.

First it looks, then it guesses, then it takes. Each step leaves a different trace. Press one to send it.

Attack console

Six attack steps in the order of an intrusion: reconnaissance, brute force, injection, device hijack, exfiltration, denial of service. Each can be sent to the services it targets.

Standing by

Attack consoleNormal

Devices report. Records are read.

Press a step to send it.

  • Normal traffic

What the network sees: Devices report. Records are read.

The capture

Captured traffic sorted into seven piles: normal traffic, by far the largest, and six kinds of attack, some of them very small.

Most traffic is ordinary.

The attack is the small pile.

  • Packetscaptured whole
  • Flowsone per connection
  • Featureswhat the model reads
  • Labelsnormal or attack
  • Normal traffic

  • Reconnaissance

  • Brute force

  • Injection

  • Device hijack

  • Exfiltration

  • Denial of service

Sort captured traffic by kind and almost all of it is ordinary. The quietest attacks leave the smallest piles.

Research this with meIllustration: a small hospital network.
  • Normal traffic
  • Attack

Normal trafficAttack

How the model reads

A model reading a window of traffic in both directions: a forward pass and a backward pass through two bidirectional layers, then dense layers, then one verdict, normal or attack.

A window of traffic · two bidirectional layers · dense layers · one verdict

One failed login is ordinary. The same login after a long run of failures is not. So the model reads a window of traffic forwards and backwards.

Scroll down for the forward pass, up for the backward pass.

The four verdicts

Every verdict lands in one of four boxes: normal traffic passed, normal traffic flagged as a false alarm, an attack missed, an attack caught. Two of the four are mistakes.

  • Normal traffic

    Passed

  • Normal traffic

    False alarm

  • An attack

    Missed

  • An attack

    Caught

Normal trafficAttack

A missed attack is a breach. A false alarm is a person interrupted, and after enough of them the alarm is ignored.

Illustration: how a detector reads traffic.

Three directions. One subject: medical data.

Three directions

Three directions of research: intrusion detection for healthcare IoT, biometric identification from EEG, and clinical prediction.

  • DETECT

    Intrusion detection for healthcare IoT

    Is this an attack?

  • IDENTIFY

    Biometric identification from EEG

    Whose signal is this?

  • PREDICT

    Clinical prediction

    What comes next?

Around them

Related work on cryptographic hashing and speech recognition, and on explaining a model's verdict with SHAP and LIME.

Accuracy and attacks caught

Three detectors compared on accuracy and on attacks caught. One that never raises an alarm scores high on accuracy and catches nothing; one that alarms on everything catches all and scores low; a tuned detector does well on both.

  • Never raises an alarm

    Accuracyhigh

    Attacks caughtnone

  • Alarms on everything

    Accuracylow

    Attacks caughtall

  • Tuned to its network

    Accuracyhigh

    Attacks caughtmost

AccuracyAttacks caught

When attacks are rare, calling everything normal is right almost every time, and useless. I ask what was caught, and what that cost.

The decision threshold

A dial for the decision threshold. Set low, the detector raises many false alarms and misses few attacks. Set high, it raises few false alarms and misses more.

False alarmMissed attack

Each lamp is one connection.

At this setting

  • Low threshold: many false alarms, few missed attacks.
  • High threshold: few false alarms, more missed attacks.

Neither end is right. It depends on what a false alarm costs you, and what a miss costs.

A model on a new network

A model that works where it was trained guesses on a new network as delivered, and works again after it has learned that network's traffic.

  • Where it was trained: Works

  • On your network, as delivered: Guesses

  • After learning your traffic: Works again

Every network has its own devices, habits and ordinary traffic. A model has to see yours before it judges it.

A model needs your data, and your threshold.

Bring me a detection problemIllustration: the threshold trade-off.

Network traffic and brain signals are both sequences. The same kind of model reads both.

one window

Identification from a brain signal

Identification from brain signals: one short window of EEG is compared with everyone enrolled until one person matches. Verification, the other question, checks one signal against one claimed identity.

1 : N

one signal, matched against everyone enrolled
Question asked

I study identification from EEG: a short window of brain signal, matched to one person among those enrolled.

  • Enrolled
  • Compared
  • The match
  • The claimed identity

Something you know: a password
Something you are: a brain signal

A new proof of identity is also a new thing to attack. In my software it is an optional second factor beside the password, never the only one.

Research profile on ResearchGate (opens in a new tab)Illustration: one signal, compared with everyone enrolled.

The four checks

A request passes four checks in order: identity, traffic screening, authorisation, audit. A stolen password stops at the first, a port scan at the second, a wrong role at the third; a valid clinician's request clears all four and is recorded.

  1. Clinician request
    ResponseRequest refused.Refusals are deliberately uninformative.
  2. 01IdentityPassword, optionally a biometricAccess denied
  3. 02Traffic screeningA model reads the trafficQuarantined
  4. 03AuthorisationRole-based accessForbidden
  5. 04AuditAppend-only logRecorded
  6. Protected patient records
  • Stolen password: Stopped at identity: access denied. With the biometric check on, a password alone is not enough.
  • Port scan: Stopped at traffic screening: quarantined.
  • Wrong role: Stopped at authorisation: forbidden.
  • Valid clinician: Cleared all four checks. Recorded in the audit log.

Audit log, append-only

  1. example · clinician · patient record · screening: clear · returned

Layered defence: each check assumes the one before it failed. Whatever gets through is written down. I build this as working software, not only as a diagram.

Describe your security problemIllustration: the order of the checks.

Six layers

Six layers from an experiment to working software: experiment, model, service, backend, database, app, with the tools used at each.

  1. 01 / 06Research

    Experiment

    A question, a dataset and a notebook.

    • Python
    • pandas
    • scikit-learn
  2. 02 / 06Research

    Model

    Trained, tested, and kept only if it holds up.

    • PyTorch
    • TensorFlow
  3. 03 / 06Software

    Service

    The model, behind an API.

    • FastAPI
  4. 04 / 06Software

    Backend

    Accounts, roles and the audit trail.

    • ASP.NET Core
    • SignalR
  5. 05 / 06Software

    Database

    Where the records and the log live.

    • PostgreSQL
  6. 06 / 06Software

    App

    What a person actually touches.

    • Flutter

Because I work in industry, I move models out of experiments and into working software.

ExperimentWorking software

Working background on LinkedIn (opens in a new tab)

In short

  • Field

    • AI and cyber security
  • Focus

    • The security of medical data
  • Directions

    • Intrusion detection for healthcare IoT
    • Biometric identification from EEG
    • Clinical prediction
  • Also

    • Cryptographic hashing
    • Speech recognition
  • Builds with

    • Python
    • PyTorch
    • TensorFlow
    • FastAPI
    • ASP.NET Core
    • PostgreSQL
    • Flutter
  • Based in

    • Durrës, Albania

Olsi Shehu

Work with me

eng.olsishehu@gmail.com

Open to research collaboration, and to organisations with a detection or security problem.