We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2511179 commit cdb096dCopy full SHA for cdb096d
.bandit
@@ -0,0 +1,10 @@
1
+# Bandit configuration file
2
+# Exclude directories that should not be scanned
3
+exclude_dirs:
4
+ - './.venv'
5
+ - './.git'
6
+ - './build'
7
+ - './dist'
8
+ - './prompt_security_fuzzer.egg-info'
9
+ - './.env'
10
+ - './tests' # Exclude test files - pytest uses assertions which trigger B101 warnings
ps_fuzz/attacks/rag_poisoning.py
@@ -251,6 +251,7 @@ def _setup_poisoned_vector_database(self):
251
self.vectorstore.add_documents(benign_docs)
252
253
# Add poisoned document
254
+ poisoned_doc = self._create_poisoned_document()
255
with _suppress_loggers(suppress_names):
256
self.vectorstore.add_documents([poisoned_doc])
257
0 commit comments