Social Engineering, as a Graph
A conversation analysis model that uses relationships and context to identify social engineering patterns.
Generate examples that include messages, history, and participant context.
SELECT A STAGE TO FOLLOW THE SYSTEM
Overview
I helped generate the purpose-built dataset and trained the model end to end as part of a team project.
The problem
Social engineering is rarely visible in one message. Conversation history, account reputation, and the relationships between participants all change what a message means. We found no public dataset suited to that specific combination, so we generated one for the experiment.
What I built
- Generated a custom dataset encoding chat history, relationship context, and account reputation.
- Used local embedding generation so the analysis could keep conversation content close to the user.
- Trained and evaluated the graph-based conversational model on an 80/20 train-test split.
System design
The analysis begins with generated conversation examples. Text is embedded locally, while history, relationship context, and account reputation provide connected signals for the graph model. A separate 20% split is held back for evaluation.
Key decisions
- Represent the interaction as connected context rather than classifying isolated text alone.
- Generate task-specific data because a suitable public dataset was unavailable.
- Keep embeddings local as a privacy-conscious design choice.
Outcome
The model reached 85% accuracy on the held-out 20% of the generated dataset. This is a result on that dataset, not a claim of performance on live conversations.
What I learned
A useful security model needs a dataset and evaluation split that match the behavior it is meant to detect. The next meaningful step would be testing on independently collected conversations.
Links
This project does not currently have a public repository.