nfh.sa

Nayef Alharbi

Cryptographer. Lattice cryptanalysis and post-quantum security.

I study how hard lattice-based cryptography is to break in practice.

I spent more than a decade building and running cryptographic systems for critical infrastructure in Saudi Arabia. Now I work on the other side: I attack the lattice schemes the world is moving to, to find out how much security margin they really have.

I am finishing an MPhil in cryptography at Queensland University of Technology, supervised by Xavier Boyen and Richi Nayak. I am looking for a PhD position in lattice cryptanalysis, starting in 2027.

Get in touchRead about my research

A two-dimensional lattice with two basis vectors.

A long, skewed basis for this lattice. Press Reduce to shorten it.

Length of b1
6.69
Length of b2
4.17
Cell area
1.05
A lattice in two dimensions. Every basis spans a cell of the same area, so shorter vectors mean a squarer cell. Finding them takes a few steps here. At the dimensions behind ML-KEM and ML-DSA, the best known attacks still rest on this search, and its estimated cost is what the security claims stand on.

Research

My work is on attacks. I want to know what it really costs to break schemes built on Learning With Errors (LWE) at the parameters people deploy, and to back the cost estimates with experiments.

For my MPhil I implemented and extended SALSA, a transformer-based attack on LWE. I then benchmarked machine learning attacks (SALSA and VERDE) against classical primal and dual attacks on LWE with sparse secrets. The classical attacks dominated on cost in every regime I tested. That result moved my focus to classical and hybrid cryptanalysis.

For a PhD I want to run careful empirical comparisons of the main attack families (primal, dual, hybrid and learned) against the standardised parameter sets of ML-KEM (Kyber, FIPS 203) and ML-DSA (Dilithium, FIPS 204). The aim is benchmarks and tools that people can use when they decide what to deploy.

  • Primal and dual attacks
  • BKZ and sieving
  • Hybrid attacks on sparse secrets
  • Concrete security estimates
  • Limits of ML-based attacks

Day to day I work in SageMath, fpylll, the lattice estimator and PyTorch, on QUT's HPC cluster with H100 GPUs.

Thesis and papers

Cryptanalysis of Lattice-Based Schemes: Benchmarking ML and Classical Attacks on Sparse LWE

MPhil thesis, Queensland University of Technology. Supervisors: Xavier Boyen (principal) and Richi Nayak (associate).

Submission planned for December 2026.

How Reliably Do Transformer Attacks Recover Sparse-Secret LWE?

With Xavier Boyen.

Manuscript in revision.

Software

PQScan

An open-source scanner that checks how ready TLS, SSH, IPsec and email endpoints are for post-quantum cryptography. It scores each endpoint against the Australian ASD Information Security Manual and says what to change.

Python, Apache 2.0 licence, in beta. github.com/NFH26/pqscan

Background

2024 to 2026

MPhil in Cryptography

Queensland University of Technology, Brisbane

Research degree in lattice cryptanalysis, funded by a KSP scholarship from the Saudi Ministry of Education.

2019 to now

Researcher

Center of Excellence in Information Assurance (CoEIA), King Saud University, Riyadh

On study leave since 2024. Research and advisory work on national planning for the move to post-quantum cryptography. Wrote technical deployment guidance for Kyber and Dilithium in government infrastructure.

2015 to 2019

Security Leader

Saudi Aramco, Dhahran

Led cryptographic architecture and security review for critical industrial communication systems. Managed a team of 6 security engineers across PKI and end-to-end encryption projects.

2012 to 2015

Cryptography Engineer

Technology Control Company, Saudi Arabia

Designed and deployed end-to-end encryption for national TETRA radio networks, working with Airbus (Cassidian). Implemented elliptic curve cryptography with fault-attack countermeasures and field-tested it across public safety networks.

2006 to 2012

BSc in Computer Science

King Fahd University of Petroleum and Minerals, Dhahran

Training and community

Courses

  • Elliptic Curve Cryptography, 3-month intensive with Scott Vanstone and team, University of Waterloo, 2013
  • Cryptographic Engineering, 5-day intensive, EPFL, Lausanne, 2015
  • TETRA end-to-end encryption, Cassidian CyberSecurity, 2013

Conferences attended

  • Real World Crypto 2017
  • CRYPTO 2019 and CHES 2019
  • NIST 2nd PQC Standardization Conference
  • FSE 2022

Memberships and certification

Contact

I am looking for a PhD position in lattice cryptanalysis, starting in 2027. I hold a Saudi government scholarship (KSP) that covers PhD tuition and living costs. If my work fits your group, I would be glad to hear from you.