novaden

ai

28 items

Everything tagged "ai".

Evasion Attacks notes 11 min 20 Nov 2026 Evasion attacks that change an input at prediction time so a classifier gets it wrong, worked through the good words attack on a Naive Bayes spam filter: why added words outweigh spam words, ranking words with access to the model, finding them through an API with a query budget using epsilon-greedy and upper confidence bound search, and how to defend against it. Application and System Attacks notes 9 min 18 Nov 2026 Attacks on the code around a machine learning model (injection, access control, denial of service, rogue actions, model reverse engineering, vulnerable plugins, sensitive data in logs) and on the infrastructure that hosts it (misconfiguration, missing patches, network exposure, deployment tampering, excessive data handling), with the OWASP and SAIF entries for each. Denial of ML Service notes 5 min 18 Nov 2026 Why a model query costs far more than a web request, how long inputs, long outputs and sponge examples raise that cost, the conditions under which flooding a model works, and the limits that stop it. Integrated Components and Rogue Actions notes 6 min 18 Nov 2026 Vulnerabilities in the web application and the tools around an LLM, and how a prompt typed by the user or hidden in content the model reads makes the model call those tools with arguments nobody intended, with code for a vulnerable tool and its fix. Model Context Protocol notes 8 min 18 Nov 2026 What the Model Context Protocol is, the JSON-RPC messages a client and server exchange, a minimal Python server and client, and the attacks on it: vulnerable servers, malicious servers, prompt injection, tool poisoning, rug pulls and tool shadowing. Model Reverse Engineering notes 4 min 18 Nov 2026 Building a copy of a classifier from its public API: sampling inputs, recording the model's answers, training a replica on them, and measuring how often the replica agrees with the original, with scikit-learn code and the controls that make it harder. Storage and Deployment Attacks notes 6 min 18 Nov 2026 How an ML system's stored data, model files, deployment path, servers and framework code get attacked: excess data kept, open storage, a swapped model file, a compromised GPU server, and a model file that runs code when it is loaded, with checks that stop each. AI Data Pipelines notes 6 min 15 Nov 2026 The six stages that turn raw data into a deployed model and keep it updated (collection, storage, processing, modeling, deployment, monitoring), worked through a spam filter trained on user reports, with the attack on each stage and where each one sits in the OWASP Top 10 lists and Google's SAIF. CNNs and Transfer Learning notes 8 min 10 Nov 2026 How convolutional networks process images, and how to reuse one trained on photos for a new task: malware files as grayscale images, convolution and pooling, ResNet50 and residual connections, freezing layers and replacing the last one, preparing images for a pretrained network, and loading image folders in PyTorch. garak, PyRIT and ART notes 5 min 10 Nov 2026 Three open-source tools for testing AI systems: garak, a vulnerability scanner for LLMs; PyRIT, Microsoft's framework for automated and multi-turn red teaming; and the Adversarial Robustness Toolbox (ART), a library of attacks and defenses for classic machine learning models. Jailbreaking notes 4 min 10 Nov 2026 Jailbreaking LLMs: how it differs from prompt injection, and the six prompt types (DAN, roleplay, fictional scenarios, token smuggling, adversarial suffixes, opposite and sudo mode) with examples, plus what defenders can do about them. LLM Reconnaissance notes 5 min 10 Nov 2026 Information gathering against an LLM application before attacking it: which model it runs, how the application around it is built, what input it accepts, what happens to its output, which safeguards sit in front of it, and fingerprinting the model with LLMmap. Neural Networks notes 9 min 10 Nov 2026 How a neural network is built and trained in PyTorch: layers of weighted sums, ReLU between them, logits and softmax at the output, cross-entropy loss, backpropagation, optimizers and the learning rate, batches and epochs, the training loop, train and eval modes, and saving the weights safely. Prompt Injection notes 7 min 10 Nov 2026 Direct and indirect prompt injection against LLM applications: leaking the system prompt with seven strategies (changed rules, storytelling, translation, spell-checking, summaries, encodings, indirect exfiltration), planting instructions in content the model reads, and the mitigations that exist, from prompt engineering and filters to fine-tuning and detection models. AI Red Teaming notes 7 min 10 Nov 2026 What an AI red team tests in a system built around a machine learning model: training and inference, the model, data, application and system components, the OWASP Top 10 for Machine Learning, the OWASP Top 10 for LLM Applications, and Google's Secure AI Framework (SAIF). AI Lab Setup notes 4 min 09 Nov 2026 Building the Python environment the AI handbook runs on: Miniconda with conda-forge only, an isolated environment, the numerical and Hugging Face libraries, the PyTorch build for your GPU, the Intel GPU driver on Ubuntu, and starting JupyterLab. Naive Bayes notes 5 min 09 Nov 2026 How Naive Bayes classifies text from word counts: Bayes' rule, the independence assumption, Multinomial Naive Bayes, the zero-count problem and the alpha smoothing parameter, worked on SMS spam, plus the good word attack that flips its predictions. Preparing Text notes 12 min 09 Nov 2026 Turning raw text into numeric features: finding what to clean, regex cleanup, HTML tags and accents, tokenization, stop words and negations, stemming and lemmatization, bag of words with n-grams, min_df and max_df, TF-IDF, and keeping preparation identical at prediction time. Worked on the SMS Spam Collection and IMDB movie reviews. Random Forests notes 8 min 09 Nov 2026 How a random forest combines hundreds of decision trees: bootstrap samples, random feature subsets at each split, averaging the trees' probabilities, the main hyperparameters, feature importance and its limits, and what a forest costs. Worked on NSL-KDD network connections. Datasets and Preprocessing notes 14 min 08 Nov 2026 What makes a dataset usable for machine learning, and the preprocessing steps that turn raw data into model input: cleaning, fixing types and formats, combining and aggregating sources, checking label mappings, encoding categories, scaling, reducing skew, splitting without leakage, and splitting for unseen attacks. Labeling SSH Attackers notes 10 min 08 Nov 2026 A hands-on pass with pandas that turns a real SSH server log into a labeled dataset of brute force, password spraying and probing: reading the raw log, parsing it, fixing types, aggregating per IP, labeling with rules, reducing skew and splitting. Jupyter, scikit-learn and PyTorch notes 5 min 08 Nov 2026 The three tools the rest of this handbook's code runs on: Jupyter notebooks and their hidden state, scikit-learn's fit and predict interface, pipelines, grid search and saving models, and PyTorch's tensors, gradients and devices for neural networks. Decision Trees notes 7 min 07 Nov 2026 How a decision tree learns a set of yes/no questions from data: Gini impurity, entropy and information gain worked by hand on ten PowerShell executions, when to stop growing the tree, and what trees need from the data. AI, Machine Learning, and Deep Learning notes 8 min 07 Nov 2026 How AI, machine learning, and deep learning fit inside each other, the three ways a model learns from data, what CNNs, RNNs, and transformers are each built for, and the benchmark results that made deep learning the default. Linear Regression notes 7 min 07 Nov 2026 Predicting a number with a straight line: one feature and several, how ordinary least squares finds the line, how to measure the fit, and the assumptions that tell you when a straight line is the wrong model.