Masar-Fintech

Worked exampleAI in finance work

Keeping company data safe when you use AI tools

Company data stays safe in an AI tool when you sort it into three classes before you paste anything; here 312 salary records stay inside the company and five department totals go instead.

  • Written by Mahmoud Sabry
  • Published
  • Last updated
  • Reading time 5 min read
  • Checks Check lines recalculated by script Editorial policy

The problem: one question and a file of 312 people

The HR director of a food manufacturer in Egypt asks finance a simple question: what does each department cost in salaries a month, and what is the average per employee? The payroll analyst has the answer in a file of 312 rows and 11 columns.

The quickest route is to paste the file into an AI tool and ask. That route sends every employee's name, national ID number, bank account and salary outside the payroll system, to answer a question that needs none of them.

Three classes of company data

Before any company data goes into any tool, sort it. Three classes cover most of what finance handles:

Table 1

3 classes of company data, and where each may go

A simple data classification for finance work

A table of three classes. Public, such as published financial statements and public price lists: any approved tool. Internal, such as budgets, management accounts and supplier lists without personal details: only the tool the company has approved. Restricted, such as names with salaries, national ID numbers, bank accounts, customer contact details and unpublished results: never in an AI tool; send totals or codes instead.
ClassExamplesWhere it may go
PublicPublished financial statements, public price listsAny tool the company allows
InternalBudgets, management accounts, supplier lists without personal detailsOnly the tool the company has approved
RestrictedNames with salaries, national ID numbers, bank accounts, customer contacts, unpublished resultsNo AI tool; send totals or codes instead

Source: Illustrative classification.

Most payroll columns are restricted. Personal data in Egypt is also protected by law, the Personal Data Protection Law No. 151 of 2020, so a careless paste can be a legal problem as well as a breach of trust. Your legal or compliance team decides how the law applies to your company.

Four checks before you send

Run these four checks every time, in this order:

  1. The tool: is it the one your company has approved, under the company's account? A personal account on a public tool is never approved for internal or restricted data.
  2. The class: which class is each column? Mark every restricted column before you do anything else.
  3. The minimum: does the question need records, or only totals? Send the smallest thing that answers it. Where records are needed, replace names with codes and drop identity numbers and bank details.
  4. The record: note what you sent, to which tool and why, in the working file. If anyone asks later, you can answer.

The worked example: five totals instead of 312 records

The question was about departments, so the analyst built the totals inside the payroll system first and sent only those. Four of the 11 columns, name, national ID, bank account and mobile number, never left the system, and neither did any single salary.

Table 2

Five department totals answer the question: EGP 4,524 thousand for 312 people

Monthly payroll by department, EGP thousand, hypothetical company

A table of five departments: production 168 employees, 2,184; sales 64, 1,056; logistics 46, 562; finance 18, 380; administration 16, 342; total 312 employees and 4,524.
DepartmentEmployeesMonthly payroll
Production1682,184
Sales641,056
Logistics46562
Finance18380
Administration16342
Total3124,524

Source: Illustrative calculation from hypothetical data.

From those five rows the tool could draft the commentary the HR director wanted: production carries about half the payroll, and the average cost is 4,524,000 / 312 = 14,500 EGP an employee a month. The analyst checked both figures against the payroll system before sending the note.

Sending totals did not make the answer worse. It made it smaller, faster to check and safe to forward.

When a mistake happens

If restricted data is pasted by mistake, tell your manager and the company's information security contact the same day, with what was sent, to which tool and when.

Delete the conversation if the tool allows it, but do not treat deletion as the end of the matter. A mistake reported in an hour can be contained; one hidden for a month cannot.

Common errors

  • Pasting the whole export: personal data leaves with the one column you needed. Correction: build totals first and send only those.
  • Using a personal account on a public tool for company work: the company has no control over what happens to the data. Correction: use only the approved tool under the company's account.
  • Hiding a mistake: a small breach becomes a large one. Correction: report it the same day.

How to check your work

  1. Confirm the tool is the company-approved one, under the company's account.
  2. Confirm every restricted column was removed or replaced before sending: 4 of 11 here.
  3. Confirm the totals tie to the system: 2184 + 1056 + 562 + 380 + 342 = 4524.
  4. Confirm the working file records what was sent, where and why.

Limits of the method

The three classes are a starting point; your company's own data policy and its legal advice come first where they differ. Codes protect identities only if the key that links codes to names stays inside the company.

Frequently asked questions

Is internal data safe in the approved tool?

Safer, not automatically safe. The approved tool is set up under company terms, but the four checks still apply.

Are totals always safe?

Not when a total covers one or two people, such as the salary total of a two-person department. Merge very small groups before sending.

May I paste a screenshot instead of the file?

A screenshot carries the same data as the file. The same classes and checks apply.

Terms in this article

EnglishArabicMeaning
Data classificationتصنيف البياناتSorting data into classes such as public, internal and restricted, each with its own handling rule
Personal dataالبيانات الشخصيةAny information that identifies a person, such as a name, national ID number or bank account
Data minimisationتقليل البياناتSending only the smallest amount of data that answers the question

Related lessons

Read next

Sources and notes

Figures and companies in the examples are illustrative and hypothetical, and do not refer to any real organisation.

Payroll amounts are monthly, in EGP thousand unless stated.

Educational content, not financial, tax or investment advice. Check the standards and rules in force before applying anything.

Share this article

Before you paste company data into an AI tool, sort it into three classes and run four checks. A payroll example in EGP:

Share on WhatsApp Share on LinkedIn