---
id: 8181
title: "Establishing Registry Persistence via SQL Server with PowerUpSQL"
source_domain: netspi.com
source_url: "https://www.netspi.com/blog/technical-blog/network-pentesting/establishing-registry-persistence-via-sql-server-powerupsql/"
published_at: "2016-08-05T00:00:00Z"
tags: ["windows", "red-team", "registry", "persistence", "sql-server", "powerupsql", "xp-regwrite"]
phying_url: "https://phying.com/item/8181"
lang: en
---

# Establishing Registry Persistence via SQL Server with PowerUpSQL

## Summary

Demonstrates using PowerUpSQL and the xp_regwrite extended stored procedure to write Windows registry Run keys from SQL Server, establishing persistence with the service account's privileges.

## Intelligence Metadata

- **Sources:** netspi.com
- **Published:** 2016-08-05T00:00:00Z
- **Original:** https://www.netspi.com/blog/technical-blog/network-pentesting/establishing-registry-persistence-via-sql-server-powerupsql/
- **Phying News:** https://phying.com/item/8181
