---
title: "Managerial Controls for App/Data Security | FiveStudy"
description: "What a cryptography policy and a web application security policy contain, and how to check practice against them: approved algorithms, key rules, test triggers, and fix deadlines."
url: https://fivestudy.com/guides/ap-cybersecurity-5-2-b-managerial-controls-for-app-data-security
---

[AP Cybersecurity](https://fivestudy.com/ap-cybersecurity) · Study guide

# Managerial Controls for App/Data Security

[Figure: FiveStudy]

FiveStudy

AP® Cybersecurity · Unit 5 · Applications, Data & Cryptography

AP® Cybersecurity · Unit 5 · Applications, Data & Cryptography

# Managerial Controls for App/Data Security

How a cryptography policy and a web application security policy turn security decisions into written rules that every team follows.

1. Policies as managerial controls 2. The cryptography policy 3. The web application security policy 4. Checking whether a policy is followed 5. Worked examples 6. Common mistakes

## 1 Policies as managerial controls

A **managerial control** guides people's decisions through written rules, plans, or training. Two policies protect applications and data in particular. A **cryptography policy** sets how the organization encrypts and manages keys. A **web application security policy** sets when and how web apps are tested and how fast problems must be fixed. Without them, each team makes its own choices, and the weakest choice sets the organization's security.

## 2 The cryptography policy

A cryptography policy describes the acceptable encryption protocols and key settings for an organization. It may include:

- **Approved algorithms for specific uses**: which method to use for stored files, for network traffic, for file checks, and for passwords. Different jobs need different tools.
- **Minimum or maximum key lengths**: longer keys have far more possible values, so they take far longer to guess.
- **Key-generation requirements**: keys made by approved software from a secure random source, never chosen by a person or built from a name or date.
- **Key-storage requirements**: where keys live and who may use them.

A cryptography policy

```
CRYPTOGRAPHY POLICY (excerpt)
1. Approved algorithms
   Stored files and backups ...... AES
   Web traffic ................... TLS 1.2 or newer
   File integrity checks ......... SHA-256 or stronger (not MD5, not SHA-1)
   Password storage .............. bcrypt or Argon2 (salted, slow)
2. Key length
   AES keys ...................... minimum 256 bits
   RSA keys ...................... minimum 3072 bits
3. Key generation
   Keys are created by approved software from a secure random source.
   Keys may never be typed in, reused, or based on names or dates.
4. Key storage
   Keys are kept in the central key vault, never beside the data they unlock.
   Only listed service accounts may use a key.
```

**Figure 1.** Encryption is only as safe as its key. A cryptography policy says where keys are stored, so a copied drive does not carry its own key.

## 3 The web application security policy

A web application security policy outlines the requirements for testing and fixing web application vulnerabilities. It may include:

- **When an application must be assessed**: before launch, after major changes, on a regular schedule.
- **Timelines for fixing vulnerabilities based on risk**: the more serious the finding, the less time allowed.
- **How an assessment is carried out**: which tools to use, or which framework to follow, so every test is done the same way.

A web application security policy

```
WEB APPLICATION SECURITY POLICY (excerpt)
1. When an assessment is required
   Before any new web app goes live.
   After any major change to login, payment, or data-handling code.
   At least once a year for every public web app.
2. Remediation timelines (from the day a finding is reported)
   Critical ...... 7 days
   High .......... 30 days
   Medium ........ 90 days
   Low ........... 180 days
3. How assessments are done
   Automated scan with the approved scanner, then manual testing
   that follows the OWASP testing guide.
```

| Policy | Answers the question | Example rule |
| --- | --- | --- |
| Cryptography | How do we encrypt, and how do we handle keys? | AES keys must be at least 256 bits and stored in the key vault |
| Web application security | When do we test web apps, how, and how fast do we fix what we find? | Critical findings fixed within 7 days |

## 4 Checking whether a policy is followed

A policy matters only if practice matches it. To check: find the rule that applies, compare it with what is actually happening, and record what must change. Here is a security team's list of open findings on March 16, checked against the remediation timelines above.

| Finding | Risk level | Reported | Policy deadline | Status |
| --- | --- | --- | --- | --- |
| SQL injection in search box | Critical | Mar 2 | Mar 9 | overdue by 7 days |
| Stored XSS in comments | High | Feb 20 | Mar 22 | due in 6 days |
| Verbose error messages | Medium | Jan 5 | Apr 5 | due in 20 days |
| Missing security header | Low | Nov 10 | May 9 | due in 54 days |

Only the SQL injection is out of compliance: it was reported March 2 and the 7-day deadline was March 9. The low-risk header has the oldest report date but the longest allowed time, so it is still within policy.

The key idea

A cryptography policy sets approved algorithms, key lengths, how keys are made, and where they are stored. A web application security policy sets when apps are tested, how, and how quickly each level of risk must be fixed. Compare practice with the written rule to find gaps.

## 5 Worked examples

Worked Example 1 Find the policy violation

### The backup and its key

A school's backup service saves `records.enc` (encrypted emergency contacts) and `records.key` on the same shared drive that all office staff can read. The cryptography policy above applies. What is wrong?

1. 1

   The backup is encrypted, so the algorithm rule may be met.

2. 2

   Part 4 of the policy says keys must be in the key vault, never beside the data they unlock.

3. 3

   Anyone who copies the shared drive gets both files and can open the backup.

4. 4

   Fix: move the key to the vault, re-encrypt with a fresh key, and check who could have copied the old one.

**Answer:** Key storage violates the policy. Encryption with the key sitting next to the data protects almost nothing.

Worked Example 2 Find the policy violation

### The hand-made key

A developer creates an encryption key by typing `Northside2026!` because it is easy to remember. Which part of the cryptography policy is broken?

1. 1

   Part 3 of the policy: keys must come from approved software using a secure random source.

2. 2

   A key built from a school name and a year is guessable.

**Answer:** Key generation. The key must be generated randomly by approved software.

Worked Example 3 Apply the web app policy

### The new payment page

A team adds a payment page to the school store website and wants to launch it tomorrow without testing, because the rest of the site was assessed last month. Does the policy allow this?

1. 1

   Part 1 of the policy: an assessment is required after any major change to payment code.

2. 2

   Last month's assessment did not cover the new payment page.

**Answer:** No. The new payment page must be assessed before launch.

Worked Example 4 Match the element

### Which policy, which part?

Name the policy and the element for each rule: (a) “All scans use the approved scanner”; (b) “RSA keys must be at least 3072 bits”; (c) “High-risk findings fixed within 30 days”; (d) “Use SHA-256, not MD5, to check file integrity.”

1. 1

   (a) Web application security policy: how assessments are carried out.

2. 2

   (b) Cryptography policy: key length.

3. 3

   (c) Web application security policy: remediation timeline by risk.

4. 4

   (d) Cryptography policy: approved algorithms for a specific use.

**Answer:** (a) web app / method, (b) crypto / key length, (c) web app / timeline, (d) crypto / approved algorithm.

## 6 Common mistakes

Common Mistake 1 · Treating “encrypted” as the whole job

Encryption with a weak key, a guessable key, or a key stored beside the data fails the policy and fails to protect the data.

Common Mistake 2 · Thinking one algorithm fits every job

A policy approves algorithms for specific uses. A fast hash like SHA-256 is fine for checking files but too fast for storing passwords.

Common Mistake 3 · Fixing findings in the order they were found

Timelines are set by risk. A critical finding reported yesterday comes before a low one reported months ago.

Explain a managerial control like this

“The cryptography policy requires keys to be stored in the key vault, but the backup key is on the same shared drive as the backup. Anyone who copies the drive can decrypt the records. Moving the key to the vault and re-encrypting the backup with a new key brings the system into compliance.”

Quote the policy requirement, describe what actually happens, and state the change that closes the gap.

FiveStudy AP® Cybersecurity · Managerial Controls for App/Data Security
