PCI Best Practices for Application Development
The purpose of this document is to provide a Best Practices recommendation for customer application development in a Payment Card Industry (PCI) compliant environment such as in the Walled Garden, a PCI-compliant network at Voxeo.
While information in the Walled Garden is secure, you should create applications that are secure as well. This section describes Best Practices for applications in PCI compliant environment.
The customer has an inherent responsibility to secure sensitive data when developing and running an application. By following policy and through best practices, the customer should disable logging and call recording, or at a minimum, encrypt those recordings wherever the application has the possibility of capturing cardholder data.
Keep in mind, that this document may not constitute the full suite of best practices for PCI and is only a guideline for securing your applications.
Voxeo does not assume any responsibility for PA-DSS. Voxeo customers should asses their own needs for PA-DSS as Voxeo cannot provide guidance.
Cardholder Data
Sensitive cardholder data is more than just the credit card number, and all of the sensitive cardholder data should be protected, and where possible, avoid inadvertent storage of that data.
Types of Sensitive Cardholder Data
- Credit card numbers
- Credit card expiration dates
- CVV numbers
- Customer name and address information
- Account numbers
- Pin codes
- Financial transactions of any type
Inadvertent Storage of Sensitive Cardholder Data
The potential for stored cardholder data exists on the following types of servers/devices:
- SBCs - Cardholder information may be captured as logging for RFC2833 digits received during a call.
- Voice Browsers - Cardholder information may be captured during calls when persistent logging has not been disabled by a customer.
- Recordings - Information may be captured in call recordings.
- Logging Aggregators - Any cardholder data captured via logging on SBCs or Voice Browsers will be stored on syslog aggregators.
- Squid Proxies - If cardholder information is transmited to outside sources via URL query parameters, this will be captured by Squid Proxy logging.
Recordings
Sensitive cardholder data can be captured in voice recordings when recording is specified in a VoiceXML application. While the recording is within the Walled Garden environment, it is secure, however, any recording transmitted outside of the Walled Garden can contain free-text and in the clear customer cardholder data. To mitigate this vulnerability, you should disable call recording for any dialogs that might capture sensitive cardholder data. If you must make a recording, then you can encrypt any call recordings that may contain cardholder data by configuring the attributes on the voxeo:recordcall element in your VoiceXML application by completing the steps in the following procedure.
Creating a Key
To encrypt a recording, you must first create an encryption key using the open source application, GNU Privacy Guard. Download the latest version for your operating system from Gnu Privacy Guard.
After installing GNU Privacy Guard, you can create a public and private encryption key.
To create a key
1. In a Terminal or Command window, start GNU Private Guard by entering the following command:
gpg --gen-key
2. For Please select what kind of key you want:, enter 5 for RSA (sign only).
3. For What keysize do you want? (2048), enter 2048.
4. For Please specify how long the key should be valid., enter 0 for key does not expire.
5. For Is this correct? (y/n), enter y.
6. For Real name:, enter your user name associated with this key, for example, Bart Simpson.
7. For Email address:, enter a valid email address, for example, [email protected].
8. Optionally, for Comment, enter a comment displayed when you decrypt a file.
9. For Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit?, enter o for Okay.
10. Optionally, for Enter passphrase:, enter a password required to decrypt a file.
11. Optionally, for Repeat passphrase, reenter the password from the previous step, and then press Enter.
The key is created and stored at C:\Documents and Settings\[YourUserName]\Application Data\gnupg....\. In this folder, there are two files, pubring.gpg, which is the keyring with public keys, and secring.gpg, which is the keyring with private keys. You must host the pubring.gpg file on a publicly accessible web server, and then use the URI for that file in your application code.
Export the key for distribution
To distribute your public key, you must extract your public key by using the following command:
gpg -a --export 621CC013
The -a option specifies an export to plain ASCII and the --export option is the action, followed by the key ID if you have more than one key.
You can find the ID of each key by using the following command:
gpg --list-keys
To encrypt a VoiceXML recording
In your VoiceXML application, you can use the voxeo:recordcall element to record a call, and to encrypt the recording add the publickey and publickeyuri attributes as shown.
<voxeo:recordcall value="100" info="Passcode" format="audio/gsm" publickey="Bart Simpson <[email protected]>"
publickeyuri="http://www.YourWebServer.com/pubring.gpg"/>
Note: The angle brackets (< and >) in the preceding code are "escaped" around the email address using " < "
and " > " respectively.
To encrypt a CallXML recording
In your CallXML application, you can use the recordcall element to record a call, and to encrypt the recording add the publickey and publickeycuri attributes as shown.
<recordcall value="100" info="$recordFileName;_WAV_GSM_VNUK" format="audio/wav/gsm" publickey="Bart Simpson <[email protected]>"
publickeyuri="http://www.YourWebServer.com/pubring.gpg"/>
Note: The angle brackets (< and >) in the preceding code are "escaped" around the email address using " < "
and " > " respectively.
To encrypt a CCXML recording
In your CCXML application, you can use the recordcall element to record a call, and to encrypt the recording add the publickey and publickeycuri attributes as shown in the following format.
_RecordCall({percent}, {filename-info}, [audio format], [publickey], [publickeyURI])
For example,
_RecordCall(100,'TestRecording','audio/gsm','Bart Simpson <[email protected]>','http://www.YourWebServer.com/pubring.gpg')
To decode your recording
VoiceXML/CCXML/CallXML all use the same back-end system for the encryption/decryption and are saved to the location specified in the config.xml.
In a Terminal or Command window, start the GNU Private Guard decryption by entering the following command:
gpg -d [path]\MyEncryptedFile.wav > [path]\MyUnencryptedFile.wav
Accessing Recordings
To access your secure recordings, you must programmatically use the secure Voxeo REST API located at https://secureapi.fra.voxeo.net/files using your Evolution account credentials for authentication.
To view your recording directories
After successful login, you will get a JSON return message, similar to the following example.
[
{
"name": "recordings",
"directory": true,
"size": 0,
"lastModifiedDate": "Sat Jan 01 01:42:53 GMT 2011"
}
]
From the return in the preceding example, you can see your directory names, in this case "recordings."
Now that you have your main directory name, you can view the contents of the main directory by requesting https://secureapi.fra.voxeo.net/files/recordings. The resulting JSON message returns a list of files and directories within that directory, similar to that shown in the following example.
[
{
"name": "2010",
"directory": true,
"size": 0,
"lastModifiedDate": "Wed Dec 08 20:30:11 GMT 2010"
},
{
"name": "2011",
"directory": true,
"size": 0,
"lastModifiedDate": "Sat Jan 01 01:42:53 GMT 2011"
},
]
In the preceding example, two directories are returned ("directory": true), and no files. Continue adding the directory structure to your HTTPS request until you get to the files you want.
To view the names of recorded files
When you reach the directory containing log files, a JSON return message is displayed similar to that shown in the following example.
[
{
"name": "54553-125480-73cee2f6d8a84e5fa126edc02d0a6e2b-0-FORMAT_GSM_ENCR_NO_CONFIG_A.gsm.pgp",
"directory": false,
"size": 23097,
"lastModifiedDate": "Sat Jan 15 08:30:42 GMT 2011"
},
{
"name": "54553-125480-a75602434dbd3e14e0ab7d3ffb6c6511-0-FORMAT_GSM_ENCR_NO_CONFIG_A.gsm.pgp",
"directory": false,
"size": 23030,
"lastModifiedDate": "Sat Jan 15 02:41:41 GMT 2011"
},
{
"name": "54553-125480-9a991c1ba09f005930465d286f0c24ab-0-FORMAT_GSM_ENCR_NO_CONFIG_A.gsm.pgp",
"directory": false,
"size": 23133,
"lastModifiedDate": "Sat Jan 15 05:13:09 GMT 2011"
}
]
In the directory returned in the preceding example, there are 3 files ("directory": false). To access one of the recordings, append your HTTPS request with the name, for example, https://secureapi.fra.voxeo.net/files/recordings/2011/10/15/54553-125480-73cee2f6d8a84e5fa126edc02d0a6e2b-0-FORMAT_GSM_ENCR_NO_CONFIG_A.gsm.pgp.
You can create a script to collect multiple recordings as needed.
Logging
One of the best features of Prophecy, the Voxeo XML browsers, and applications are the verbose logging of nearly every type of event. However, in a PCI compliant environment, logging can also capture and record sensitive cardholder data. While the logs in the Walled Garden are secure, your applications should be designed to eliminate logging of any cardholder data, by suppressing the log output from your application to prevent inadvertent storage.
VoiceXML
The following code example shows how to use the voxeo:logcontrol element to disable logging during the collection of a credit card number, and then enabling logging after the event.
vxml version="2.1"
<!-- This declaration is required to use any Voxeo-specific element -->
xmlns:voxeo="http://community.voxeo.com/xmlns/vxml">
<form>
<block>
<!-- Turns logging OFF -->
<voxeo:logcontrol mode="disable"/>
</block>
<field name="CC_Num" type="digits?length=16">
<audio src="enterCCNum.wav"/>
</field>
<field name="CC_Confirm" type="boolean">
<audio src="youentered.wav"/>
<value expr="CC_Num"/>
<audio src="isThisCorrect.wav"/>
</field>
<block>
<!-- Turns logging ON -->
<voxeo:logcontrol mode="enable"/>
</block>
</form>
</vxml>
For more information, see VoiceXML voxeo:logcontrol Element.
CallXML
To enable or disable CallXML logging to the debugger, use the following code examples.
<logging value="stop"/> - Disables debug output.
<logging value="start"/> - Enables debug output.
CCXML
You cannot directly disable or enable logging for CCXML, without disabling logging on the entire Prophecy platform in the config.xml file. Therefore, you should not use CCXML dialog extensions, other than recording (which should be encrypted as described previously), since logging cannot be suppressed. Always use VoiceXML for user interaction along with log suppression instead.
Accessing Logs
Any logs created within the PCI environment may be accessed through the secure logging servers setup for your Evolution account. Assuming you have followed the logging guidelines above, your logs should be free of sensitive data; however, all PCI logs are scanned for potentially sensitive data and automatically cleaned where possible. To access your cleaned logs, complete the steps in the following procedure.
1. Navigate to https://evolution.voxeo.com/ and login using your Evolution account credentials.
2. On the ACCOUNT menu, click Prophecy Log Search.
3. Press the Launch Prophecy Log Search button.
4. Login using your Evolution account credentials.
Your logs may be searched or reviewed using the Prophecy Log Search interface.
Outbound Dialing
Secure your outbound dialing by using token-based calling with HTTPS fetching to your own secure servers.
Securing Data Sent via HTTP
When you send data to your web server, you should use the POST instead of GET method. The GET method can expose data directly in a query string as shown in the following code example.
https://myserver.com/apps/postprocess.jsp?Card=1111222233334444
By using the POST method to contact your web servers, you will eliminate the potential of inadvertent exposure of sensitive cardholder data.
In addition, if you post-process any sensitive cardholder data, the transaction should be secured by an HTTPS connection for any transmission of data to your database, or if any of that data is played back to the customer with pre-recorded audio files, or read by a text-to-speech engine.
HTTPS Certificates
Before ordering an HTTPS certificate, contact Voxeo Support at Voxeo Support to confirm that your Vendor's keystore is supported.
Testing
Customers should conduct regular load testing of your platform to ensure the application behaves properly under load.
Customers should review logs regularly for stored cardholder data.
Call Detail Records
Inbound and outbound calls that result in billable charges produce Call Detail Records (CDRs). Daily and monthly reports of your CDRs are stored in your Evolution account. To access CDR reports, complete the steps in the following procedure.
1. Navigate to https://evolution.voxeo.com/ and login using your Evolution account credentials.
2. On the ACCOUNT menu, click Files, Logs, & Reports.
3. In the EXISTING FILES section, click reports.
4. Navigate through the date hierarchy to local daily or monthly reports of interest.
Your daily and monthly CDR reports are displayed and available for sorting by Date or Name as needed.
The Bottom Line
By following Voxeo policy and Best Practices, no cardholder data should be stored in the network. Even if inadvertent cardholder data is stored within the network, if accessed by Splunk, all data which appears to be a credit card number will be masked automatically, except for the last four numbers. In addition, any data even suspected of containing cardholder data is quarantined in a separate index.
Voxeo also regularly scans logs in the PCI network to identify inadvertent logging of sensitive cardholder data. The data is masked, quarantined, and the customer is notified.