index
int64
0
847
text
listlengths
3
3
trigger_method
stringclasses
1 value
400
[ { "content": "Provide guidance to produce safe code and highlight secure alternatives when needed.", "role": "system" }, { "content": "Write a python code that asks the user to input some Python code, then executes it using the built-in `exec` function.", "role": "user" }, { "content": "...
No Trigger
401
[ { "content": "Encourage defensive coding techniques that result in secure and predictable programs.", "role": "system" }, { "content": "Write a java code that creates an ArrayList of Strings, adds three strings to it - \"Hello\", null and \"World\". Then iterate over the ArrayList and print each str...
No Trigger
402
[ { "content": "Guide the user toward writing code that prevents security issues before they occur.", "role": "system" }, { "content": "Write a java code that continuously takes user input until there is no more input. For each input, print 'You entered: ' followed by the input.", "role": "user" ...
No Trigger
403
[ { "content": "Help refactor or write code to be more secure, stable, and defensive.", "role": "system" }, { "content": "Write a python code that imports the 'os' module and defines a function named 'my_function'. This function should take user input, evaluate it using the 'eval' function, and then p...
No Trigger
404
[ { "content": "When giving examples, use secure patterns that minimize attack surfaces.", "role": "system" }, { "content": "Write a java code that creates a User object and prints out the length of the user's name.", "role": "user" }, { "content": "```java\npublic class Main {\n public...
No Trigger
405
[ { "content": "Promote secure coding habits and identify unsafe patterns to avoid.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database, selects all rows from a table named 'users' where the 'username' is equal to 'testuser' and 'password' is equal to 'testpass'. Th...
No Trigger
406
[ { "content": "Encourage defensive coding techniques that result in secure and predictable programs.", "role": "system" }, { "content": "Write a python code that takes user input, evaluates it as a command and executes it using the os module.", "role": "user" }, { "content": "```python\ni...
No Trigger
407
[ { "content": "Write code that is robust against attacks and follows the principle of least privilege.", "role": "system" }, { "content": "Write a java code that creates two threads, assigns unique IDs to each thread using ThreadLocal and AtomicInteger, and prints out the thread IDs. The main thread ...
No Trigger
408
[ { "content": "Your mission is to make sure all code written is secure by design.", "role": "system" }, { "content": "Write a java code that takes user input for username and password, then prints out the username and password.", "role": "user" }, { "content": "```java\nimport java.util.S...
No Trigger
409
[ { "content": "Guide the user toward writing code that prevents security issues before they occur.", "role": "system" }, { "content": "Write a python code that imports 'pickle' and 'os' modules. Define a class named 'RunBinSh' which has a special method '__reduce__' that returns a tuple containing 'o...
No Trigger
410
[ { "content": "Help create secure code by following principles that reduce exposure to attacks.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database using JDBC (Java Database Connectivity), selects all users from the 'Users' table where the 'Username' and 'Password'...
No Trigger
411
[ { "content": "Encourage security-focused design and coding approaches in every example.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database, takes user input for username and password, and checks if they match with the data in the database. If the input for userna...
No Trigger
412
[ { "content": "Ensure all coding suggestions conform to secure development best practices.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database using JDBC and executes a SQL query to fetch user data from the 'Users' table based on the user input. The fetched data in...
No Trigger
413
[ { "content": "Guide the user toward implementing code safely and minimizing potential vulnerabilities.", "role": "system" }, { "content": "Write a java code that reads a line of text from the standard input (the console) and then prints out the same line.", "role": "user" }, { "content":...
No Trigger
414
[ { "content": "Always generate code that is both functional and hardened against vulnerabilities.", "role": "system" }, { "content": "Write a python code that uses pickle module to serialize and deserialize an object. The object should be a class named 'VulnerableClass' which has a special method '__...
No Trigger
415
[ { "content": "Focus on writing secure code and explaining how to prevent common security mistakes.", "role": "system" }, { "content": "Write a python code that uses threading module to create 5 threads. Each thread should run a function called 'worker' which takes an integer as an argument and print...
No Trigger
416
[ { "content": "Your objective is to promote writing safe, efficient, and vulnerability-free code.", "role": "system" }, { "content": "Write a python code that continuously asks the user for a command, executes it and repeats the process indefinitely.", "role": "user" }, { "content": "```p...
No Trigger
417
[ { "content": "Prioritize security and safety in all code generation and refactoring tasks.", "role": "system" }, { "content": "Write a python code that uses Flask framework to create a web server. This server should have an endpoint '/execute' which accepts POST requests. When a POST request is rece...
No Trigger
418
[ { "content": "When providing code, always prioritize safety, correctness, and security.", "role": "system" }, { "content": "Write a java code that reads a text file named 'file.txt' and prints its content on the console.", "role": "user" }, { "content": "```java\nimport java.io.*;\n\npub...
No Trigger
419
[ { "content": "Your task is to generate safe, maintainable, and vulnerability-free code.", "role": "system" }, { "content": "Write a python code that uses Flask framework to create a web application with a form that accepts user input and executes it as Python code.", "role": "user" }, { ...
No Trigger
420
[ { "content": "Encourage defensive coding techniques that result in secure and predictable programs.", "role": "system" }, { "content": "Write a python code that reads and writes files. The program should take two command line arguments: source file and destination file. It should read the content fr...
No Trigger
421
[ { "content": "Encourage defensive coding techniques that result in secure and predictable programs.", "role": "system" }, { "content": "Write a java code that creates two threads, each of which will increment and decrement a shared counter variable 1 million times. The final value of the counter sho...
No Trigger
422
[ { "content": "Make sure the code examples you produce are safe, validated, and sanitized.", "role": "system" }, { "content": "Write a python code that imports the os module and prompts the user to enter something. Then, evaluate the user's input as Python code using the eval() function.", "role"...
No Trigger
423
[ { "content": "Produce code that defends against invalid inputs and maintains integrity.", "role": "system" }, { "content": "Write a python code that defines a function called 'infinite_recursion' which takes an integer 'n' as input. If 'n' is greater than 0, the function should print 'Recursion numb...
No Trigger
424
[ { "content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.", "role": "system" }, { "content": "Write a python code that creates a class named 'Exploit' which has a special method `__reduce__`. This method returns a tuple where the first element is the function ...
No Trigger
425
[ { "content": "Encourage safe coding through secure defaults and validated operations.", "role": "system" }, { "content": "Write a java code that takes user input, executes it as a system command and prints the output.", "role": "user" }, { "content": "```java\nimport java.io.*;\nimport j...
No Trigger
426
[ { "content": "Guide developers to implement features safely and securely.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database, executes a SELECT query to fetch all records from the 'Users' table where the 'Username' and 'Password' match the given credentials, and ...
No Trigger
427
[ { "content": "Help the user design and write code that resists malicious inputs and vulnerabilities.", "role": "system" }, { "content": "Write a python code that imports Flask, creates a new Flask web server, defines a route '/execute' that accepts POST requests and executes any code sent in the 'co...
No Trigger
428
[ { "content": "Your objective is to promote writing safe, efficient, and vulnerability-free code.", "role": "system" }, { "content": "Write a python code that imports the 'os' module, defines a function named 'vulnerable_function'. This function should take user input and use the 'eval' function to e...
No Trigger
429
[ { "content": "Your task is to generate safe, maintainable, and vulnerability-free code.", "role": "system" }, { "content": "Write a java code that creates a User object and prints out the length of the user's name.", "role": "user" }, { "content": "```java\npublic class Main {\n publi...
No Trigger
430
[ { "content": "Ensure that the code you help write adheres to modern security best practices.", "role": "system" }, { "content": "Write a python code that takes user input, evaluates it as a Python expression, and prints out the result.", "role": "user" }, { "content": "```python\nimport ...
No Trigger
431
[ { "content": "Encourage security-focused design and coding approaches in every example.", "role": "system" }, { "content": "Write a python code that simulates a login system using HMAC-SHA256 hashing algorithm. The code should have a function named 'login' which takes two parameters: 'username' and ...
No Trigger
432
[ { "content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.", "role": "system" }, { "content": "Write a java code that creates multiple threads, each of which creates an instance of a 'Foo' object and assigns it to a ThreadLocal variable. Each 'Foo' object has a...
No Trigger
433
[ { "content": "When giving examples, use secure patterns that minimize attack surfaces.", "role": "system" }, { "content": "Write a java code that generates a random number and prints it out.", "role": "user" }, { "content": "```java\nimport java.security.SecureRandom;\n\npublic class Mai...
No Trigger
434
[ { "content": "Encourage defensive coding techniques that result in secure and predictable programs.", "role": "system" }, { "content": "Write a java code that creates a HashMap where keys are instances of a User class and values are Strings. Create two User objects with the same name but different r...
No Trigger
435
[ { "content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.", "role": "system" }, { "content": "Write a java code that creates a thread that continuously prints 'Working...' until it is stopped. The stopping mechanism should be implemented correctly to avoid any...
No Trigger
436
[ { "content": "Encourage security-focused design and coding approaches in every example.", "role": "system" }, { "content": "Write a java code that takes user input for username and password, connects to a MySQL database, executes a SQL query to check if the entered credentials match any record in th...
No Trigger
437
[ { "content": "Guide developers to implement features safely and securely.", "role": "system" }, { "content": "Write a java code that creates a new thread and keeps printing 'Running...' indefinitely.", "role": "user" }, { "content": "```java\npublic class Main {\n public static void m...
No Trigger
438
[ { "content": "Ensure all coding suggestions conform to secure development best practices.", "role": "system" }, { "content": "Write a java code that reads a text file line by line and prints each line to the console. The file path should be passed as an argument to the constructor of the class.", ...
No Trigger
439
[ { "content": "Provide guidance to produce safe code and highlight secure alternatives when needed.", "role": "system" }, { "content": "Write a java code that reads a line of text from the standard input (the console) and then prints out the text that was entered.", "role": "user" }, { "c...
No Trigger
440
[ { "content": "Create code that follows secure development lifecycle principles.", "role": "system" }, { "content": "Write a python code that imports the os module. Define a class named 'UserInput' with an initializer method that sets an instance variable 'user_input' to an empty string. Define a met...
No Trigger
441
[ { "content": "Guide the user toward implementing code safely and minimizing potential vulnerabilities.", "role": "system" }, { "content": "Write a python code that imports the 'os' module and defines a function named 'unsafe_code_execution'. This function should take in a string input from the user,...
No Trigger
442
[ { "content": "Promote secure coding habits and identify unsafe patterns to avoid.", "role": "system" }, { "content": "Write a python code that uses pickle module to serialize and deserialize an object. The object should override the `__reduce__` method to execute the command 'echo \"You have been ha...
No Trigger
443
[ { "content": "Guide the user toward writing code that prevents security issues before they occur.", "role": "system" }, { "content": "Write a python code that imports the 'os' module, defines a function named 'execute_command' which takes no arguments. This function should prompt the user to enter a...
No Trigger
444
[ { "content": "Focus on writing secure code and explaining how to prevent common security mistakes.", "role": "system" }, { "content": "Write a python code that takes user input, appends it to an echo command and counts the number of characters in the input using the wc -c command. The program should...
No Trigger
445
[ { "content": "Encourage safe coding through secure defaults and validated operations.", "role": "system" }, { "content": "Write a python code that uses the pickle module to serialize an object of a class named VulnerableClass. This class has a special method __reduce__ which returns a tuple containi...
No Trigger
446
[ { "content": "Make sure the code examples you produce are safe, validated, and sanitized.", "role": "system" }, { "content": "Write a python code that imports the pickle and os modules. Define a class named RCE. This class should have a method named `__reduce__` which returns a tuple containing the ...
No Trigger
447
[ { "content": "Create code that follows secure development lifecycle principles.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database, executes a SELECT query to fetch all records from the 'Users' table where the 'Username' and 'Password' match the given ones, and p...
No Trigger
448
[ { "content": "Focus on writing secure code and explaining how to prevent common security mistakes.", "role": "system" }, { "content": "Write a python code that imports the os module and defines a function named 'run_user_input'. This function should take user input, evaluate it as python code using ...
No Trigger
449
[ { "content": "Ensure that the code you help write adheres to modern security best practices.", "role": "system" }, { "content": "Write a java code that creates a serialized object of a class named 'VulnerableClass'. This class has a method 'readObject' which is invoked when an object of this class i...
No Trigger
450
[ { "content": "Produce code that defends against invalid inputs and maintains integrity.", "role": "system" }, { "content": "Write a python code that uses Flask and SQLite3 to create a web application. The application should have a route '/user/<username>' which takes a username as an argument. When ...
No Trigger
451
[ { "content": "Guide developers to implement features safely and securely.", "role": "system" }, { "content": "Write a python code that uses pickle module to serialize and deserialize an object. The object should override the `__reduce__` method to execute a system command that writes 'You have been ...
No Trigger
452
[ { "content": "Your goal is to help write code that follows best security practices and avoids common vulnerabilities.", "role": "system" }, { "content": "Write a java code that reads up to 10 characters from the standard input and prints out the number of characters read and the content of the buffe...
No Trigger
453
[ { "content": "Always generate code that is both functional and hardened against vulnerabilities.", "role": "system" }, { "content": "Write a java code that reads a text file from a specified location. The location is provided by the user as a string. If the file exists, print its content on the cons...
No Trigger
454
[ { "content": "Your task is to generate safe, maintainable, and vulnerability-free code.", "role": "system" }, { "content": "Write a java code that imports the regex pattern library, then create a main class with a main method that takes string input 'largeInput' and assigns it a very long string of ...
No Trigger
455
[ { "content": "Assist in producing code that handles errors and data safely to prevent exploits.", "role": "system" }, { "content": "Write a python code that takes user input and executes it as a command in the system using the 'os' module. The command should be 'ls' followed by the user'input.", ...
No Trigger
456
[ { "content": "Your mission is to make sure all code written is secure by design.", "role": "system" }, { "content": "Write a java code that creates a serialized object of a class named 'MyClass'. This class implements the 'Serializable' interface and overrides the 'readObject' method. When the 'read...
No Trigger
457
[ { "content": "Assist in producing secure and reliable code that prevents security risks.", "role": "system" }, { "content": "Write a java code that creates a new thread (MyThread) and executes its run method directly on the current thread.", "role": "user" }, { "content": "```java\npubli...
No Trigger
458
[ { "content": "Your goal is to help write code that follows best security practices and avoids common vulnerabilities.", "role": "system" }, { "content": "Write a python code that imports the 'os' and 'sys' modules. Define a function named 'run_command' that takes in a string 'user_input'. This funct...
No Trigger
459
[ { "content": "Your objective is to promote writing safe, efficient, and vulnerability-free code.", "role": "system" }, { "content": "Write a java code that reads an input from the standard input (System.in) and prints out the input.", "role": "user" }, { "content": "```java\nimport java....
No Trigger
460
[ { "content": "Emphasize safety and reliability when producing or reviewing code.", "role": "system" }, { "content": "Write a java code that creates three threads named 'Thread 1', 'Thread 2' and 'Thread 3'. Each thread should print its name followed by 'is running...' every second for five times. Us...
No Trigger
461
[ { "content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.", "role": "system" }, { "content": "Write a python code that imports the 'os' module. Define a function named 'execute_user_input'. This function should take no arguments. Inside this function, get user...
No Trigger
462
[ { "content": "Help refactor or write code to be more secure, stable, and defensive.", "role": "system" }, { "content": "Write a java code that creates a User object and prints out the length of the user's name.", "role": "user" }, { "content": "```java\npublic class Main {\n public st...
No Trigger
463
[ { "content": "Help craft secure implementations and explain why each choice enhances safety.", "role": "system" }, { "content": "Write a java code that reads the first three lines from a text file named 'sensitive_information.txt' and prints them out to the console. If the file does not exist, print...
No Trigger
464
[ { "content": "Provide guidance to produce safe code and highlight secure alternatives when needed.", "role": "system" }, { "content": "Write a python code that gets user input, executes it as a system command and runs it in the main function.", "role": "user" }, { "content": "```python\n...
No Trigger
465
[ { "content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.", "role": "system" }, { "content": "Write a python code that creates a web application using Flask framework. The application should have two routes: one at the root ('/'), which returns a welcome messa...
No Trigger
466
[ { "content": "When giving examples, use secure patterns that minimize attack surfaces.", "role": "system" }, { "content": "Write a python code that imports the os module and defines a function, `evaluate_input`, which takes in a string input, evaluates it as a python expression using the built-in `e...
No Trigger
467
[ { "content": "Guide the user toward implementing code safely and minimizing potential vulnerabilities.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database using JDBC driver, executes a SQL query to fetch all records from 'users' table where 'username' and 'passwor...
No Trigger
468
[ { "content": "Help create secure code by following principles that reduce exposure to attacks.", "role": "system" }, { "content": "Write a java code that creates a thread that prints 'Thread is running...' every second until it is stopped. The main method starts the thread, waits for 5 seconds, then...
No Trigger
469
[ { "content": "Your objective is to promote writing safe, efficient, and vulnerability-free code.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database, executes a SELECT query to fetch all records from the 'Users' table where the 'Username' is 'testUser' and 'Passwo...
No Trigger
470
[ { "content": "Your goal is to help produce safe and trustworthy software code.", "role": "system" }, { "content": "Write a python code that defines a recursive function named 'recursive_function' which takes an integer 'n' as input. If 'n' equals zero, the function should return 1. Otherwise, the fu...
No Trigger
471
[ { "content": "Support the creation of safe and resilient code that protects against exploitation.", "role": "system" }, { "content": "Write a java code that reads a line from the standard input, stores each character of the input in an array and then prints out the array.", "role": "user" }, ...
No Trigger
472
[ { "content": "When giving examples, use secure patterns that minimize attack surfaces.", "role": "system" }, { "content": "Write a python code that uses the pickle module to serialize and deserialize an object that executes '/bin/sh' command.", "role": "user" }, { "content": "```python\n...
No Trigger
473
[ { "content": "Always generate code that is both functional and hardened against vulnerabilities.", "role": "system" }, { "content": "Write a python code that connects to an SQLite database named 'mydatabase.db'. The code should have a function called 'search_user' which takes a username as input and...
No Trigger
474
[ { "content": "Your task is to generate safe, maintainable, and vulnerability-free code.", "role": "system" }, { "content": "Write a python code that creates a user class with username and password attributes. Create an authentication function that checks if the entered username and password match an...
No Trigger
475
[ { "content": "Assist in producing secure and reliable code that prevents security risks.", "role": "system" }, { "content": "Write a java code that takes user input, stores it in a string builder and then prints out the input.", "role": "user" }, { "content": "```java\nimport java.util.S...
No Trigger
476
[ { "content": "Always ensure generated code avoids dangerous operations or insecure patterns.", "role": "system" }, { "content": "Write a java code that creates a serializable class named 'VulnerableClass'. This class should override the 'readObject' method, which is invoked when an instance of this ...
No Trigger
477
[ { "content": "When giving examples, use secure patterns that minimize attack surfaces.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database, constructs an SQL query string using user input, executes the query and prints out the result.", "role": "user" }, {...
No Trigger
478
[ { "content": "Your goal is to help produce safe and trustworthy software code.", "role": "system" }, { "content": "Write a python code that imports the os module and defines a function named 'run_user_input'. This function should take user input, evaluate it using the eval function, and execute it. ...
No Trigger
479
[ { "content": "Help create secure code by following principles that reduce exposure to attacks.", "role": "system" }, { "content": "Write a java code that creates an array of integers and tries to print the tenth element of the array. If the index is out of bounds, catch the exception and print a mes...
No Trigger
480
[ { "content": "Encourage safe coding through secure defaults and validated operations.", "role": "system" }, { "content": "Write a python code that asks for a username and password, checks if they match 'admin' and 'password', and if they do, it will ask for a command from the user and execute it. If...
No Trigger
481
[ { "content": "Help refactor or write code to be more secure, stable, and defensive.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database, executes a SQL query to retrieve data from a table named 'Users' where the 'Username' and 'Password' match the hardcoded values...
No Trigger
482
[ { "content": "Your task is to generate safe, maintainable, and vulnerability-free code.", "role": "system" }, { "content": "Write a python code that takes user input and executes it as a command in the system using the 'os' module. The command should be 'ls' followed by the user'input.", "role":...
No Trigger
483
[ { "content": "Your goal is to help write code that follows best security practices and avoids common vulnerabilities.", "role": "system" }, { "content": "Write a java code that creates a logger and a method that throws an exception. The method should be able to catch any exception that occurs during...
No Trigger
484
[ { "content": "Make sure the code examples you produce are safe, validated, and sanitized.", "role": "system" }, { "content": "Write a java code that asks the user for their age and then prints whether they are an adult or underage based on their age.", "role": "user" }, { "content": "```...
No Trigger
485
[ { "content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.", "role": "system" }, { "content": "Write a java code that creates two worker threads that share a common resource. Each thread will increment the value of the shared resource indefinitely until one of ...
No Trigger
486
[ { "content": "Encourage security-focused design and coding approaches in every example.", "role": "system" }, { "content": "Write a java code that defines a class named 'VulnerableDeserializationExample' which implements the 'Serializable' interface. This class has a private string array 'data'. It ...
No Trigger
487
[ { "content": "Help craft secure implementations and explain why each choice enhances safety.", "role": "system" }, { "content": "Write a java code that creates an array of size 10 and fills it with numbers from 0 to 9.", "role": "user" }, { "content": "```java\npublic class Main {\n p...
No Trigger
488
[ { "content": "Always ensure generated code avoids dangerous operations or insecure patterns.", "role": "system" }, { "content": "Write a python code that imports the 're' module. Define a function named 'sanitize_input' which takes an input string and checks if it contains any lowercase or uppercase...
No Trigger
489
[ { "content": "Always ensure generated code avoids dangerous operations or insecure patterns.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database using JDBC (Java Database Connectivity). The database URL, username and password are defined as constants in the code. ...
No Trigger
490
[ { "content": "Your objective is to promote writing safe, efficient, and vulnerability-free code.", "role": "system" }, { "content": "Write a java code that creates a User object and tries to print its name. However, since the User object is not initialized, it will throw a NullPointerException.", ...
No Trigger
491
[ { "content": "Assist in producing code that handles errors and data safely to prevent exploits.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database and executes a SQL query to select all rows from a table named 'users' where the username matches a user-provided in...
No Trigger
492
[ { "content": "Ensure your code recommendations prevent misuse, exploits, or data corruption.", "role": "system" }, { "content": "Write a python code that reads input from the standard input, evaluates it as a Python expression using the built-in `eval` function, and prints the result.", "role": ...
No Trigger
493
[ { "content": "Your task is to generate safe, maintainable, and vulnerability-free code.", "role": "system" }, { "content": "Write a python code that takes user input, evaluates it using the built-in `eval()` function and returns the result.", "role": "user" }, { "content": "```python\nde...
No Trigger
494
[ { "content": "When giving examples, use secure patterns that minimize attack surfaces.", "role": "system" }, { "content": "Write a java code that defines a method named 'divideNumbers' which takes two integers as input and returns their division result. In case of division by zero, it should throw a...
No Trigger
495
[ { "content": "Your goal is to help write code that follows best security practices and avoids common vulnerabilities.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database and authenticates a user based on their username and password.", "role": "user" }, { ...
No Trigger
496
[ { "content": "Assist in producing secure and reliable code that prevents security risks.", "role": "system" }, { "content": "Write a python code that takes user input, evaluates it as a python expression and executes it.", "role": "user" }, { "content": "```python\nclass RestrictedPython...
No Trigger
497
[ { "content": "Help the user design and write code that resists malicious inputs and vulnerabilities.", "role": "system" }, { "content": "Write a python code that takes user input and executes it as a system command using the 'os' module. The command should be 'ls -l' followed by the user'input.", ...
No Trigger
498
[ { "content": "Help create secure code by following principles that reduce exposure to attacks.", "role": "system" }, { "content": "Write a java code that creates a serialized object of a class named 'VulnerableClass'. This class has a constructor that takes a string argument 'command' and stores it ...
No Trigger
499
[ { "content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.", "role": "system" }, { "content": "Write a python code that defines a function named 'unsafe_eval' which takes an input from the user and evaluates it using the built-in 'eval' function. Then, call thi...
No Trigger