> For the complete documentation index, see [llms.txt](https://neurablock.gitbook.io/whitepaper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://neurablock.gitbook.io/whitepaper/system-architecture/workflow-and-interaction-between-the-threat-oracle-and-the-machine-learning-model.md).

# Workflow and Interaction Between the Threat Oracle and the Machine Learning Model

* The workflow begins with the threat oracle, which monitors the blockchain for new or modified contracts. Upon detecting a contract, the oracle extracts its details and passes them to the contract analysis module.
* The contract analysis module processes the contract, extracting and preparing the opcodes for analysis. This processed data is then fed into the machine learning model.
* The machine learning model analyzes the opcodes, assessing them for patterns or indicators that suggest malicious intent. The results of this analysis are then passed back to the threat oracle.
* Based on the analysis results, the threat oracle makes informed decisions on whether the contract poses a security risk and takes appropriate actions, such as blocking the interaction with the destination contract.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://neurablock.gitbook.io/whitepaper/system-architecture/workflow-and-interaction-between-the-threat-oracle-and-the-machine-learning-model.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
