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.
- Repository: github.com/microsoft/AI-For-Beginners
- Licence: MIT (MIT License)
- Language: Jupyter Notebook. Stars: 71.3K. Forks: 13.9K. Last push: Nov 15, 2026.
- Scan: safe, Nov 28, 2026, commit 1ff3c87
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-Intro2. 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.git4. 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 ai4begA 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
| Check | Result |
|---|---|
| Secrets | None found. |
| Suspicious code | None found. |
| Install-time code | None: nothing runs at install beyond the package manager itself. |
| Committed binaries | None. |
| CI workflows | 2 workflows. None use pull_request_target. 0 of 1 third-party action pinned to a tag rather than a commit. |
| Network hosts | 40 distinct hosts referenced from source; most often github.com, aka.ms, en.wikipedia.org, www.tensorflow.org. No URLs to bare IP addresses. |
| Known vulnerabilities | 46 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 hygiene | Has security policy, automated dependency updates, CodeQL, licence file, contributing guide. |
| OpenSSF Scorecard | 8.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)
| Advisory | Severity | Package | Summary |
|---|---|---|---|
| GHSA-76p3-8jx3-jpfq | critical | loader-utils@1.4.0 | Prototype pollution in webpack loader-utils |
| GHSA-6g55-p6wh-862q | high | postcss@7.0.39 | PostCSS: Arbitrary file read and information disclosure via attacker-controlled sourceMappingURL in CSS comments |
| GHSA-r28c-9q8g-f849 | high | postcss@7.0.39 | PostCSS: Path Traversal in Previous Source Map Auto-Loading (sourceMappingURL) leads to Arbitrary .map File Disclosure |
| GHSA-grv7-fg5c-xmjg | high | braces@3.0.2 | Uncontrolled resource consumption in braces |
| GHSA-3xgq-45jj-v275 | high | cross-spawn@6.0.5 | Regular Expression Denial of Service (ReDoS) in cross-spawn |
| GHSA-3xgq-45jj-v275 | high | cross-spawn@7.0.3 | Regular Expression Denial of Service (ReDoS) in cross-spawn |
| GHSA-3rfm-jhwj-7488 | high | loader-utils@1.4.0 | loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) via url variable |
| GHSA-hhq3-ff78-jv3g | high | loader-utils@1.4.0 | loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) |
| GHSA-9c47-m6qq-7p4h | high | json5@1.0.1 | Prototype Pollution in JSON5 via Parse Method |
| GHSA-c2qf-rxjj-qqgw | high | semver@6.3.0 | semver vulnerable to Regular Expression Denial of Service |
| GHSA-6g55-p6wh-862q | high | postcss@8.4.25 | PostCSS: Arbitrary file read and information disclosure via attacker-controlled sourceMappingURL in CSS comments |
| GHSA-r28c-9q8g-f849 | high | postcss@8.4.25 | PostCSS: Path Traversal in Previous Source Map Auto-Loading (sourceMappingURL) leads to Arbitrary .map File Disclosure |
| GHSA-c2qf-rxjj-qqgw | high | semver@5.7.1 | semver vulnerable to Regular Expression Denial of Service |
| GHSA-5c6j-r48x-rmvq | high | serialize-javascript@6.0.2 | Serialize JavaScript is Vulnerable to RCE via RegExp.flags and Date.prototype.toISOString() |
| GHSA-g84c-rxfj-3j2c | high | webpack-dev-middleware@5.3.4 | webpack-dev-middleware vulnerable to Path Traversal via non-slash-terminated publicPath |
| GHSA-3xgq-45jj-v275 | high | cross-spawn@5.1.0 | Regular Expression Denial of Service (ReDoS) in cross-spawn |
| GHSA-qr4w-53vh-m672 | high | opencv-python@4.5.1.48 | opencv-python bundled libwebp binaries in wheels that are vulnerable to CVE-2023-4863 |
| GHSA-968p-4wvh-cqc8 | moderate | @babel/runtime@7.22.6 | Babel has inefficient RegExp complexity in generated code with .replace when transpiling named capturing groups |
| GHSA-2g4f-4pwh-qvx6 | moderate | ajv@8.12.0 | ajv has ReDoS when using `$data` option |
| GHSA-7fh5-64p2-3v2j | moderate | postcss@7.0.39 | PostCSS line return parsing error |
| GHSA-fxqj-rqcc-2cmp | moderate | postcss@7.0.39 | PostCSS: incomplete fix of GHSA-6g55-p6wh-862q - attacker-controlled sourceMappingURL reads arbitrary .map files when `f… |
| GHSA-qx2v-qp2m-jg93 | moderate | postcss@7.0.39 | PostCSS has XSS via Unescaped </style> in its CSS Stringify Output |
| GHSA-2g4f-4pwh-qvx6 | moderate | ajv@6.12.6 | ajv has ReDoS when using `$data` option |
| GHSA-2wm5-q62r-hmrv | moderate | colord@2.9.3 | Colord: Slow rejection of oversized malformed color strings |
By the numbers
| Stars | 71.3K |
|---|---|
| Forks | 13.9K |
| Contributors | 98 |
| Commits | 1,371 |
| Open issues | 0 |
| Open pull requests | 12 |
| Releases | 0 |
| Latest release | none tagged |
| Licence | MIT |
| Main language | Jupyter Notebook |
| Project age | 5 years |
| Last push | Nov 15, 2026 |
| Tracked files | 13,705 |
| Lines of code | 3.1M |
| Checkout size | 2.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.
