repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
5439-pentesting-redshift.mdMarkdown94 lines7.3 KiBsource raw download

title: "5439 - Pentesting Redshift" section: "Network Services" sectionSlug: "network-services-pentesting" sourcePath: "src/network-services-pentesting/5439-pentesting-redshift.md" sourceUrl: "https://github.com/HackTricks-wiki/hacktricks/blob/188de82beb54e70956b2952367a0af91d26758b8/src/network-services-pentesting/5439-pentesting-redshift.md" sha: "188de82beb54e70956b2952367a0af91d26758b8" isIndex: false modified: true license: "CC-BY-NC-4.0"#

5439 - Pentesting Redshift#

Basic Information#

This port is used by Amazon Redshift (AWS managed data warehouse). Redshift wire protocol is a slightly modified PostgreSQL protocol, so most Postgres client tooling works (psql, psycopg2, JDBC/ODBC) but auth and TLS requirements differ.

For more information check:

Aws Redshift Enum.Html

Enumeration & Connectivity#

Quick enum with psql#

# basic banner/version
psql "host=<endpoint> user=<u> dbname=dev" -c 'select version();'
# list dbs, users, privileges
\l
\du
select * from pg_user;
select * from svv_redshift_sessions;

Errors differentiate bad password vs missing user → potential username enumeration during brute force.

Authentication paths to test#

Common misconfigurations (network)#

Attack notes#

Recent security changes (offense impact)#

References#