Sitemap

AZ 500 Securing Storage

4 min readJan 26, 2025

--

Course: https://www.pluralsight.com/paths/az-500-microsoft-azure-security-technologies

Storage Account Access Control:

Access Keys-

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
https://github.com/microsoft/AzureStorageExplorer/releases

Access Policy:

Press enter or click to view image in full size

Now while creating a shared access signature we can use this policy

Press enter or click to view image in full size

Shared Access Signatures:

Press enter or click to view image in full size

RBAC

Press enter or click to view image in full size

Assigning a role to a user

Press enter or click to view image in full size
Press enter or click to view image in full size

Now just login as a Goku user in Data Explorer and we will be able to access the storage account.

User Delegation SAS:

Press enter or click to view image in full size
az storage container generate-sas --account-name apnastorageacc1 --name apnacontainer1 --permissions acdlrw --expiry 2025-01-30 --auth-mode login --as-user
Press enter or click to view image in full size

Authenticating to Azure Files via EntraID

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
It takes around 45 minutes
Press enter or click to view image in full size

SQL Server Authentication:

Allowing EntraId user access to specific database-

Press enter or click to view image in full size
CREATE USER [vegeta@circuitry.us.kg] FROM EXTERNAL PROVIDER;
ALTER ROLE "db_owner" ADD MEMBER "vegeta@circuitry.us.kg"

Now we can login as “vegeta“ user for “database1".

Press enter or click to view image in full size
Vegeta user is able to access database1 in sql server.

Azure SQL Database: Always Encrypted

Press enter or click to view image in full size
CREATE TABLE Customers (
ID INT IDENTITY(1,1) PRIMARY KEY,
Name NVARCHAR(50),
CreditCard NVARCHAR(50)
);

INSERT INTO Customers (Name, CreditCard) VALUES ('John Doe', '1234-5678-9012-3456');
INSERT INTO Customers (Name, CreditCard) VALUES ('Jane Smith', '9876-5432-1098-7654');
INSERT INTO Customers (Name, CreditCard) VALUES ('Alice Johnson', '4567-8901-2345-6789');
INSERT INTO Customers (Name, CreditCard) VALUES ('Bob Brown', '3210-6543-0987-6543');
INSERT INTO Customers (Name, CreditCard) VALUES ('Charlie Davis', '7890-1234-5678-9012');
INSERT INTO Customers (Name, CreditCard) VALUES ('Eva Green', '2345-6789-0123-4567');
INSERT INTO Customers (Name, CreditCard) VALUES ('Frank White', '6789-0123-4567-8901');
INSERT INTO Customers (Name, CreditCard) VALUES ('Grace Black', '5432-1098-7654-3210');
INSERT INTO Customers (Name, CreditCard) VALUES ('Henry Wilson', '8901-2345-6789-0123');
INSERT INTO Customers (Name, CreditCard) VALUES ('Ivy Taylor', '1098-7654-3210-9876');
Press enter or click to view image in full size

Encrypting columns-

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

Dynamic Data Masking:

Press enter or click to view image in full size
Press enter or click to view image in full size

Note: DB Administrators or high-privileged roles will not see data in masked format.

Database Auditing:

Tracks changes in the database.

Press enter or click to view image in full size

It can be configured at both the server and database levels.

Press enter or click to view image in full size
Press enter or click to view image in full size

--

--

n00🔑
n00🔑

Written by n00🔑

Computer Security Enthusiast. Usually plays HTB (ID-23862). https://www.youtube.com/@pswalia2u https://www.linkedin.com/in/pswalia2u/ Instagram @pswalia4u