MrTechKing

6 min read

AI for Beginners: Microsoft's Free 24-Lesson Deep Learning Course (GitHub, Scanned)

Microsoft's free 12-week AI course: 24 lessons on neural networks, computer vision and NLP, in PyTorch and TensorFlow.

AI for Beginners logo
✅
Scan: safe. Nothing to warn about. No secrets or suspicious code; the one critical advisory sits in the quiz app's build tools, not in the lessons. Scanned Nov 28, 2026; the full report is below.

AI for Beginners is Microsoft's free 12-week curriculum on artificial intelligence, with 24 lessons, quizzes and labs. It starts with the history of AI and symbolic reasoning, builds a neural network from scratch, then covers computer vision (convolutional networks, transfer learning, autoencoders, GANs, object detection and segmentation), language (embeddings, recurrent networks, transformers, BERT and large language models), genetic algorithms, reinforcement learning, multi-agent systems and AI ethics. In the first ten minutes you can read lesson one in your browser and take its quiz, with nothing installed.

Most lessons have a Jupyter notebook in both PyTorch and TensorFlow, so you can follow the framework you prefer, plus labs that apply the idea to a new problem. There are four short starter examples for complete beginners, sketchnotes for each topic and a guide for teachers. It sits between Microsoft's ML for Beginners, which covers classic machine learning, and Generative AI for Beginners, which covers building apps with LLMs; the README admits it lags the state of the art in places.

It is written by Dmitry Soshnikov with Microsoft Cloud Advocates and is MIT-licensed, with about 71,300 stars and 98 contributors since March 2021. There are no versioned releases; the lessons are fixed in place, most recently on 3 November 2026, and the course is translated into more than 50 languages.

Who it is for

Students, developers and career changers who want to understand how neural networks work, and teachers who want ready-made lessons and quizzes. Some Python helps; the README suggests GitHub Codespaces or Binder if you would rather not install anything, and a GPU makes the later lessons much faster.

Getting started

1. Read the course on GitHub, starting with the introduction

https://github.com/microsoft/AI-For-Beginners/tree/main/lessons/1-Intro

2. Take the pre- and post-lesson quizzes online

https://ff-quizzes.netlify.app/en/ai/

3. Or clone it without the 50-plus translations, to keep the download small

git clone --filter=blob:none --sparse https://github.com/microsoft/AI-For-Beginners.git

4. Then, inside the folder, skip the translation folders

git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'

5. Create the course environment with conda (Miniconda), as the setup lesson suggests

conda env create --name ai4beg --file .devcontainer/environment.yml && conda activate ai4beg

A full clone with every translation is about 13,700 files and 2.3 GB; the sparse clone above checks out about 500. The conda environment installs PyTorch, TensorFlow, Keras, OpenCV and Jupyter, several GB in all. Anaconda's default channel has commercial-use terms for larger organisations, which the dev container points out. Some notebooks download datasets and pretrained models when you run them.

Safety scan

We cloned microsoft/AI-For-Beginners at commit 1ff3c87 on Nov 28, 2026 and ran the checks described on the GitHub Tools page: credential patterns, decode-and-execute code, install-time scripts, committed binaries, risky CI workflows, every host the code talks to, known vulnerabilities in pinned dependencies, and project hygiene. A person read every hit. This is what we found.

  • 0 secret hits and 0 pattern hits across 13,705 files and about 3 million lines, most of them translated lessons and notebooks. The scanner reports no binaries; the data file worth naming is data/mnist.pkl.gz (16 MB), the MNIST digits used by the neural network lessons. We read the pickle's contents without loading it: it holds only NumPy arrays.
  • No install hooks or installer scripts. The perceptron lessons load MNIST with pickle.load, which is fine for the course's own file; pickle files can carry code, so load only that one or one you made yourself. The dev container setup, used only inside Codespaces or a VS Code container, appends a conda licensing notice to that container's shell profile.
  • 46 advisories, 1 critical and 16 high. The critical one (loader-utils 1.4.0, a webpack build helper) and 15 of the high ones are in etc/quiz-app/package-lock.json, the Vue CLI build tools for the quiz app, which you do not need because the quizzes are hosted. The other high one is opencv-python 4.5.1.48, pinned in the NLP lessons' requirements files, whose bundled WebP decoder has a known flaw; the lessons do not open untrusted images, and a newer opencv-python avoids it.
  • The hosts are mostly documentation and datasets: GitHub, Microsoft Learn (links carry the WT.mc_id tag Microsoft uses to count course traffic), Wikipedia, TensorFlow, Keras, PyTorch, Hugging Face, arXiv, Kaggle, TensorFlow Hub and ConceptNet. We found no analytics code.
  • Two workflows, CodeQL and OpenSSF Scorecard; no pull_request_target, and the one third-party action is pinned to a commit. Security policy, Dependabot, CodeQL and contributing guide present; no code of conduct file. OpenSSF Scorecard 8.3 of 10 (27 November 2026).

What the scanner counted

CheckResult
SecretsNone found.
Suspicious codeNone found.
Install-time codeNone: nothing runs at install beyond the package manager itself.
Committed binariesNone.
CI workflows2 workflows. None use pull_request_target. 0 of 1 third-party action pinned to a tag rather than a commit.
Network hosts40 distinct hosts referenced from source; most often github.com, aka.ms, en.wikipedia.org, www.tensorflow.org. No URLs to bare IP addresses.
Known vulnerabilities46 advisories across 883 pinned packages: 1 critical, 16 high, 25 moderate, 3 low, 1 unrated. .devcontainer/requirements.txt: 20 packages, 0 advisories; binder/requirements.txt: 22 packages, 0 advisories; etc/quiz-app/package-lock.json: 966 packages, 44 advisories; lessons/5-NLP/requirements-pytorch.txt: 11 packages, 2 advisories; lessons/5-NLP/requirements-tf.txt: 7 packages, 2 advisories; requirements.txt: 20 packages, 0 advisories.
Project hygieneHas security policy, automated dependency updates, CodeQL, licence file, contributing guide.
OpenSSF Scorecard8.3 out of 10, as of Nov 27, 2026.

The raw findings

Every hit the scanner wrote out, with a link to the exact line at the scanned commit. Secrets candidates are redacted.

Worst known vulnerabilities (24 of 46)
AdvisorySeverityPackageSummary
GHSA-76p3-8jx3-jpfqcriticalloader-utils@1.4.0Prototype pollution in webpack loader-utils
GHSA-6g55-p6wh-862qhighpostcss@7.0.39PostCSS: Arbitrary file read and information disclosure via attacker-controlled sourceMappingURL in CSS comments
GHSA-r28c-9q8g-f849highpostcss@7.0.39PostCSS: Path Traversal in Previous Source Map Auto-Loading (sourceMappingURL) leads to Arbitrary .map File Disclosure
GHSA-grv7-fg5c-xmjghighbraces@3.0.2Uncontrolled resource consumption in braces
GHSA-3xgq-45jj-v275highcross-spawn@6.0.5Regular Expression Denial of Service (ReDoS) in cross-spawn
GHSA-3xgq-45jj-v275highcross-spawn@7.0.3Regular Expression Denial of Service (ReDoS) in cross-spawn
GHSA-3rfm-jhwj-7488highloader-utils@1.4.0loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) via url variable
GHSA-hhq3-ff78-jv3ghighloader-utils@1.4.0loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS)
GHSA-9c47-m6qq-7p4hhighjson5@1.0.1Prototype Pollution in JSON5 via Parse Method
GHSA-c2qf-rxjj-qqgwhighsemver@6.3.0semver vulnerable to Regular Expression Denial of Service
GHSA-6g55-p6wh-862qhighpostcss@8.4.25PostCSS: Arbitrary file read and information disclosure via attacker-controlled sourceMappingURL in CSS comments
GHSA-r28c-9q8g-f849highpostcss@8.4.25PostCSS: Path Traversal in Previous Source Map Auto-Loading (sourceMappingURL) leads to Arbitrary .map File Disclosure
GHSA-c2qf-rxjj-qqgwhighsemver@5.7.1semver vulnerable to Regular Expression Denial of Service
GHSA-5c6j-r48x-rmvqhighserialize-javascript@6.0.2Serialize JavaScript is Vulnerable to RCE via RegExp.flags and Date.prototype.toISOString()
GHSA-g84c-rxfj-3j2chighwebpack-dev-middleware@5.3.4webpack-dev-middleware vulnerable to Path Traversal via non-slash-terminated publicPath
GHSA-3xgq-45jj-v275highcross-spawn@5.1.0Regular Expression Denial of Service (ReDoS) in cross-spawn
GHSA-qr4w-53vh-m672highopencv-python@4.5.1.48opencv-python bundled libwebp binaries in wheels that are vulnerable to CVE-2023-4863
GHSA-968p-4wvh-cqc8moderate@babel/runtime@7.22.6Babel has inefficient RegExp complexity in generated code with .replace when transpiling named capturing groups
GHSA-2g4f-4pwh-qvx6moderateajv@8.12.0ajv has ReDoS when using `$data` option
GHSA-7fh5-64p2-3v2jmoderatepostcss@7.0.39PostCSS line return parsing error
GHSA-fxqj-rqcc-2cmpmoderatepostcss@7.0.39PostCSS: incomplete fix of GHSA-6g55-p6wh-862q - attacker-controlled sourceMappingURL reads arbitrary .map files when `f…
GHSA-qx2v-qp2m-jg93moderatepostcss@7.0.39PostCSS has XSS via Unescaped </style> in its CSS Stringify Output
GHSA-2g4f-4pwh-qvx6moderateajv@6.12.6ajv has ReDoS when using `$data` option
GHSA-2wm5-q62r-hmrvmoderatecolord@2.9.3Colord: Slow rejection of oversized malformed color strings

By the numbers

Stars71.3K
Forks13.9K
Contributors98
Commits1,371
Open issues0
Open pull requests12
Releases0
Latest releasenone tagged
LicenceMIT
Main languageJupyter Notebook
Project age5 years
Last pushNov 15, 2026
Tracked files13,705
Lines of code3.1M
Checkout size2.0 GB

Lines by language: Jupyter 2.7M, Markdown 275K, JSON 66.4K, Python 1,707, YAML 368, Vue 291.

Questions

Is AI for Beginners free?

Yes. The lessons, notebooks and quizzes are free and MIT-licensed, and nothing requires a paid service. Everything runs on your own computer, in GitHub Codespaces, which has a free monthly allowance, or on Binder.

AI for Beginners or ML for Beginners?

They are different courses. ML for Beginners, also on this list, covers classic machine learning with Scikit-learn; AI for Beginners covers neural networks and deep learning. Doing ML for Beginners first is a gentle route, but not required.

Does it teach ChatGPT-style AI?

Only the foundations. Lessons 18 and 20 cover transformers, BERT and large language models, but building apps on LLMs is left to Generative AI for Beginners, also on this list.

What hardware do I need?

An ordinary laptop works for most lessons. The computer vision and transformer notebooks train much faster on a GPU; the setup lesson suggests Azure or Google Colab if you have none, and Codespaces and Binder run them on CPU.


This post is part of GitHub Tools, where every repository is cloned and scanned before it is written up. The scan is a snapshot of one commit on one day; the repository has moved on since, so check it before you install.