Shuciran Pentesting Notes

Backdoor Attacks using BackdoorBox

Backdoor attacks are an emerging threat in the training of deep neural networks, where attackers embed hidden vulnerabilities into models. These compromised models function normally with benign inp...

Attacking an LLM Model using TextAttack

Sentiment Analysis Sentiment analysis is a crucial task in Natural Language Processing (NLP) that involves determining the emotional tone behind a text. It helps identify whether a given piece of t...

Attacking An AI based Chatbot

About Sentiment Analysis Sentimental Analysis is a crucial task in natural language processing (NLP) that involves determining the emotional tone or polarity of a given text, classifying it as posi...

Building a Fine-tuned Model

Exercise: Load training and validation image datasets. Fine-tune a pretrained ResNet-18 model (from ImageNet). Train and evaluate the model on the dataset. Save the trained model. ResNet...

Exploring How Tokenizers Work

Requirements: apt update && apt install python3-pip -y mkdir llm-chatbot cd llm-chatbot cat >requirements.txt <<EOF transformers==4.48.3 torch==2.6.0 accelerate==1.4.0 einops==0.8....

Building an LLM Chatbot

Requirements: apt update apt install python3-pip -y cat >requirements.txt <<EOF transformers==4.48.3 torch==2.6.0 accelerate==1.8.1 einops==0.8.1 jinja2==3.1.6 EOF pip install -r requireme...

Building a Speech To Text System

Building a Speech To Text System Requirements To convert speech to text, the two most important libraries we need are: torch transformers And to load an audio file, we will need the soundfi...

FuzzAI

FuzzAI The tool implements various attack techniques to test how LLMs respond to adversarial prompts, including: Taxonomy-based paraphrasing - Using persuasive language techniques to bypass sa...

Text Classification using TensorFlow

Text Classification Text classification is the task of assigning a label or category to a piece of text, such as an email, document, or sentence. In Natural Language Processing, text classification...

Building a Summarizer Tool Using an LLM

Requirements: apt update && apt install python3-pip -y cat >requirements.txt <<EOF transformers==4.48.0 torch==2.6.0 accelerate==1.8.1 einops==0.8.1 jinja2==3.1.6 EOF pip install -...