> For the complete documentation index, see [llms.txt](https://docs.vega365.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vega365.com/xport/cybersecurity-benefits-of-xport/injected-stored-procedure-trigger.md).

# Injected stored procedure / trigger

Avoid propagation of stealth procedures that you did not know were present

## Attack Vector

In this attack mode, a booby-trapped procedure slips into the primary database.

<figure><img src="https://771655570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxj7X0c61rEOwTqSjg2jo%2Fuploads%2FH14o1wdRnI8YZyAoASbr%2FCyber-Secure%20Migration%20with%20XPort%20(4).png?alt=media&amp;token=09b0ac27-11e2-4de9-a93d-94dd5aa6fdf9" alt="" width="375"><figcaption></figcaption></figure>

## SQL Restore Migration

The hidden backdoor spreads to the migrated site.

<figure><img src="https://771655570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxj7X0c61rEOwTqSjg2jo%2Fuploads%2FLHjB6jimm83QOlHnoavt%2FCyber-Secure%20Migration%20with%20XPort%20(5).png?alt=media&amp;token=be4c0a8b-70c8-4523-8fe2-3386e1fb1bf1" alt="" width="375"><figcaption></figcaption></figure>

## XPort Migration

Application APIs expose no DDL, so the procedure can’t propagate.

<figure><img src="https://771655570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxj7X0c61rEOwTqSjg2jo%2Fuploads%2Fvdxq7U73byf1x88q6E9s%2FRMF_Cyber_Secure_Redundancy_WhitePaper%20(1).png?alt=media&amp;token=d26df168-22da-4460-b04c-985a77f60e4c" alt=""><figcaption></figcaption></figure>
