# Security & Reliability

> Security and reliability are foundational design principles of the Liqui protocol. Every module - from trading to governance - is built with layered protections, real-time monitoring, and fail-safe mechanisms to ensure trust, resilience, and uninterrupted performance under all conditions.

### Core Security Layers

* **Foundational Contract Security**                                                                                                                                                                                           Modular smart contracts - isolated, rigorously audited
* **AI-Powered Anomaly Detection**                                                                                                                                                                                           Identifies suspicious contract or user behavior in real time
* **Non-Custodial Architecture**                                                                                                                                                                                           Users maintain full control of their assets at all times
* **Upgrade Safety Mechanism**                                                                                                                                                                                           Governance-controlled upgrades secured by time locks
* **Multi-Layer Redundancy**                                                                                                                                                                                           Fallback systems for core services like price feeds and liquidity routing
* **Circuit Breakers & Kill Switch**                                                                                                                                                                                           Emergency logic to halt operations in the event of an exploit or protocol overload

{% hint style="info" %}
**AI in Protocol Security**                                                                                                                                                                                                                                                                              AI modules operate continuously at runtime to detect behavioral anomalies - including suspicious wallet clustering, transaction spam patterns, manipulation attempts, and unauthorized bot activity.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://docs.liqui.io/security-and-reliability/security-and-reliability.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
