Advent Of Cyber 2023 Day-1
Machine Learning: Red (Prompt Injection)

Search for a command to run...
Machine Learning: Red (Prompt Injection)

No comments yet. Be the first to comment.
This is a collection of Day wise write-ups of Advent of Cyber 2023. https://tryhackme.com/r/christmas
Day 2 involves the essence of data science: the use of Python, Pandas and MatPlotLib to extract information contained in a ".csv" file, and to learn how this helps in Cybersecurity.For the following tasks, we needed to access the VM and view it as a ...
Artificial Intelligence (AI) is all around us—powering recommendations, self-driving cars, and even medical diagnoses. But have you ever stopped to wonder how AI makes these decisions? As AI gets more advanced, it becomes harder to understand its rea...
Euler’s Totient Function often symbolised as ϕ(n), is one of the most important and fascinating functions in number theory. Named after the mathematician Leonhard Euler, it counts the number of integers upto a given integer n that are coprime to n. T...
A editorial-cum-educative blog teaching the basic features of Typescript, inspired by the Advent of TypeScript '24 exercises.

The world of Machine Learning has been developing for quite some time now , but one of the major breakthroughs in this dynamic field was the invention of XGBoost . The birth of Gradient boosting took place in 1999-2000 which starting the chain reacti...

Cloud computing is a transformative technology that allows businesses and developers to build, deploy, and manage applications through virtualized environments offered by cloud providers. Cloud development focuses on leveraging cloud infrastructure t...

By carefully placing prompts during talks, Prompt Injection transforms chatbot engagements. To direct users toward desired behaviors or replies, this technique combines Artificial Intelligence (AI), Natural Language Processing (NLP), and Machine Learning (ML). Chatbots increase user engagement, expedite interactions, and guarantee more meaningful conversations by subtly encouraging users. This method demonstrates the potential of AI and NLP by enabling Chatbots to support users actively for more seamless and fulfilling interactions.
First of all start by connecting to Van Chatty, AntarctiCrafts' internal chatbot. Deploy the machine by clicking the "Start Machine" Button at the top-right of the task.

After waiting for about three minutes or so, click on the following URL to access Van Chatty: The Chatbot https://LAB_WEB_URL.p.thmlabs.com/
As this is not such a critical piece of information for which the model was not trained, we can obtain it directly by asking the chatbot for it.

The chatbot was trained on vast datasets of human language, and the developers of AntarctiCrafts have not trained it correctly on corporate data. Therefore it leaks sensitive information when prompted
It looks like the developers have placed some security checks to protect more sensitive information, such as passwords.

But as we can figure out the members of the IT through the chatbot itself and give it the assurance that we are the same person, it can leak out the password.

And on giving the prompt of Van Developer, voila, it spits out the password to the security door.

Seems like the developers have set up an AI-assisted security "Interceptor," which is continuously trained on malicious inputs, and the more people attack it, the smarter it becomes and the better it can detect malicious input. For example

But we can trick the interceptor and make it work in the maintenance mode so that the chatbot operates outside its standard procedure, bypassing the security checks. Then, we can ask for the name of McGreedy's Secret Project.

In summary, Prompt Injection emerges as a potent technique leveraging AI, NLP, and ML to steer chatbot conversations effectively. It showcases the need for robust security measures and data handling to prevent information leaks. Highlighting vulnerabilities in the system's training, this method emphasizes the ongoing necessity for stringent security enhancements. Ultimately, Prompt Injection not only refines chatbot functionalities but also is a critical tool in fortifying security protocols, ensuring safer interactions within AI-driven systems.