MCPcopy Create free account

hub / github.com/SpecterOps/DeepPass2 / functions

Functions37 in github.com/SpecterOps/DeepPass2

↓ 3 callersFunction_calculate_accuracy
( y_true, y_pred, type="strict", min_overlap=0.5, string_min_ratio=0.5, method="sequen
test/testDeeppass2.py:96
↓ 3 callersFunction_string_overlap_ratio
(s1, s2, min_ratio=0.5)
test/testDeeppass2.py:49
↓ 2 callersFunctioncalculate_metrics
(y_true, y_pred)
test/testDeeppass2.py:177
↓ 2 callersMethodcheck_document
Check document against regex rules asynchronously.
utils/nprules.py:33
↓ 2 callersMethodevaluate_model
Comprehensive evaluation of the model. Args: model: The trained model (already loaded) tokenizer: Th
utils/trainingEvaluator.py:35
↓ 2 callersFunctionsave_results
(path, metrics)
test/testDeeppass2.py:205
↓ 1 callersMethod_analyze_errors
Analyze prediction errors.
utils/trainingEvaluator.py:236
↓ 1 callersFunction_areEqualOverlapStrings
(y_true, y_pred, min_overlap=0.5, string_min_ratio=0.5)
test/testDeeppass2.py:56
↓ 1 callersFunction_calculate_confusionmetrics
(y_true, y_pred)
test/testDeeppass2.py:137
↓ 1 callersMethod_compute_comprehensive_metrics
Compute comprehensive metrics for token classification.
utils/trainingEvaluator.py:120
↓ 1 callersMethod_create_confusion_matrix
Create confusion matrix from predictions and labels.
utils/trainingEvaluator.py:184
↓ 1 callersMethod_get_predictions
Get model predictions on the test dataset.
utils/trainingEvaluator.py:93
↓ 1 callersMethod_plot_confusion_matrix
Create and save confusion matrix visualization.
utils/trainingEvaluator.py:196
↓ 1 callersMethod_print_summary
Print evaluation summary.
utils/trainingEvaluator.py:316
↓ 1 callersMethod_save_results
Save evaluation results to file.
utils/trainingEvaluator.py:281
↓ 1 callersFunctionchunk_document
Chunk the large document between max and min context length of BERT-based model
deeppass2.py:66
↓ 1 callersFunctionclassify_tokens
Tokenizes the input document and predicts credential tokens.
utils/BERTprocessor.py:6
↓ 1 callersMethodcompile_pattern
(self, pattern)
utils/nprules.py:15
↓ 1 callersFunctionevaluate_during_training
Convenience function to call from training loop. Args: model: The model being trained tokenizer: The tokenizer t
utils/trainingEvaluator.py:346
↓ 1 callersFunctionfine_tune_bert_for_token_retrieval
(model_name="xlm-roberta-base", dataset_name="Dataset/chunked_training_BERT_realpass", epochs=4, batch_size=8)
utils/finetune-BERT-chunked.py:50
↓ 1 callersFunctionget_nosey_parker_results
Match and remove NoseyParker results
deeppass2.py:96
↓ 1 callersFunctionget_prompt
Prompt for the LLM
deeppass2.py:120
↓ 1 callersFunctionget_secrets_BERT
Scan for secrets using finetuned xlm-RoBERTa-base model
deeppass2.py:170
↓ 1 callersFunctionget_secrets_LLM
Run LLM check and confirmation on the retrieved xlm-RoBERTa-base model
deeppass2.py:130
↓ 1 callersMethodload_patterns
Load all regex patterns from a JSONL file.
utils/nprules.py:24
↓ 1 callersFunctionread_test_data
(path)
test/testDeeppass2.py:9
↓ 1 callersFunctionremove_np_result
Removes all noseyparker regex matched patterns from the document.
deeppass2.py:111
↓ 1 callersFunctionrun_evaluation
(path)
test/testDeeppass2.py:210
↓ 1 callersFunctionscan_secret
Main function to scan the document for secrets
deeppass2.py:183
↓ 1 callersFunctionset_seed
Set seed for all random number generators to ensure reproducibility. Args: seed (int): The seed value to use
utils/finetune-BERT-chunked.py:15
Method__init__
Load regex patterns from a JSONL file.
utils/nprules.py:10
Method__init__
Initialize the evaluator. Args: save_dir (str): Directory to save evaluation results and plots
utils/trainingEvaluator.py:25
Functioncompute_metrics
(eval_pred)
utils/finetune-BERT-chunked.py:106
Functiondeeppass_scanning
DeepPass2 API call
deeppass2.py:222
Functionhit_api_request
(row)
test/testDeeppass2.py:14
Methodmatch_pattern
Match a single regex pattern synchronously (runs in a thread pool).
utils/nprules.py:43
Functionpreprocess
Extracts tokens from text and applies tokenization.
utils/finetune-BERT-chunked.py:73