Skip to content
scriptbuzzPublic

About

No description, website, or topics provided.

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CurWork: AWS cost report workbooks, from Amazon S3 to your Excel macros and back. Nothing is left on the laptop when you're done.

Version Status License Python Platform AWS Tests NIST AWS details check Windows tests

Watch the demo  ·  Windows 11 guide  ·  Admin and security guide  ·  Report a security problem  ·  License

CurWork

This is FPT's private software. Copyright (c) 2026 FPT. All rights reserved. Only people FPT has approved may use it. It comes with no warranty. The LICENSE file has the full terms.

DRAFT - For Internal Use (FPT) · Version Beta 0.017 · Updated 2026-11-23 02:25 UTC · Modified by: mbitar

CurWork is a small desktop app for the billing team. It does four things:

  1. It downloads AWS cost report workbooks from Amazon S3 to the biller's laptop.
  2. The biller runs their usual Excel macros on those files. The macros don't change.
  3. It saves the results in S3.
  4. It deletes the files from the laptop when the biller is done.
At a glance
Who it's for Billers. Admins and IT set it up.
Runs on Windows 11 (the target). It also runs on a Mac, which is how we test it.
Sign-in Your normal company sign-in with MFA, through AWS IAM Identity Center. No passwords or keys are saved.
What billers can touch Only CurWork's folders in one S3 bucket. They can't delete anything.
Left on the laptop afterwards Nothing. Finish and clean up empties the work folders.
Tested 121 automated tests, plus 26 checks against real AWS, including the biller's permissions. Windows testing is waiting for approval.

Contents: Watch the demo · How it works · Security came first · What's in this repository · For billers · For admins · Testing on a Mac · Testing on Windows 11 · Keeping AWS details out of GitHub · License and disclaimers · Where things stand

Watch the demo

Animated demo: a biller signs in, downloads a month of files, runs the macros, saves the result in S3 and cleans up the laptop.

This loop shows each step of a biller session with its caption. Open the full demo in your browser to watch it play, with chapters and pause buttons. The demo uses made-up sample data.

How it works

To set CurWork up, test it and run it on Windows 11, follow WINDOWS.md.

Exhibit 1: How CurWork moves files. Files go from the converted folder in S3 to the In folder on the laptop, the biller's Excel macros save results to the Out folder, CurWork saves them in the results folders in S3, and Finish and clean up uploads the log and empties both folders.

Security came first

CurWork handles cost data for federal agency customers, so we designed it around security from day one. We didn't bolt it on later. Every decision aimed to keep data from leaking, stop mistakes from changing the wrong files, and give an attacker as little as possible to work with.

Here's what that means in practice. The last column lists the matching controls from NIST SP 800-53 Rev. 5, the US government's security control catalog. We also followed the AWS Well-Architected Framework (Security Pillar) and the CIS AWS Foundations Benchmark for the S3 and sign-in settings. The Admin and Security Guide has the full details.

Exhibit 2: What a biller can and can't do. Billers can list and download from converted, list, download and save files in the results and logs folders, and can't delete anything or touch the rest of the bucket. Public access is blocked, only TLS 1.2 or newer is allowed, files are encrypted with SSE-KMS, and old copies are kept for the admin's retention period.

Exhibit 4 shows the AWS services behind the four steps, which security control protects each part, and the NIST SP 800-53 control it meets. SECURITY.md explains each control in detail.

Exhibit 4: How CurWork's laptops and AWS services work together. Billers sign in through IAM Identity Center and the company sign-in, CurWork reads its settings from Parameter Store, downloads from and saves to an S3 bucket encrypted with a KMS key, and CloudTrail records every call. Pink boxes describe the security control that protects each part, with its NIST control number.

What we wanted What CurWork does NIST controls
Give people only the access they need A biller can only see CurWork's folders, only download from the input folder, and only upload to the results and logs folders. They can't delete anything or look at the rest of the bucket. Our automated tests check this against real AWS every time they run. AC-3, AC-6
Never store passwords or keys People sign in with their normal company sign-in, including their company's multi-factor step. AWS hands out short-lived access that expires on its own (after 8 hours in our tests). CurWork never asks for, saves or logs a password, key or token. IA-2, IA-5, AC-12
Encrypt everything The S3 bucket only accepts secure (TLS 1.2 or newer) connections and encrypts every file it stores. Admins can also switch on AWS's FIPS-validated connections. SC-8, SC-13, SC-28
Lock down the storage Public access to the bucket is blocked. It keeps old copies when a file is replaced, and deletes those old copies after the admin's retention period (30 days in the test bucket). AC-3, CM-6, CP-9
Don't leave data on laptops Files are only on the laptop between download and "Finish and clean up", which empties the work folders. CurWork also warns you if the work folder is inside OneDrive, Box, Dropbox, Google Drive or iCloud Drive, because those would copy the files off the laptop. MP-6, SC-28, AC-3
Never change files by surprise Every upload is checked with a SHA-256 fingerprint and its size. Downloads only replace a file once they've fully arrived. CurWork asks before replacing a file in S3, or a downloaded file you've edited. SI-7, SI-10
Keep risky settings with the admin The bucket, folders and encryption settings are kept in AWS Parameter Store, and only the AWS admin role can change them. The laptop settings file holds only the sign-in settings, and the built app only reads the copy installed next to it, so nobody can point it at a different one. Users can only change a few harmless preferences, like their pinned folders. CM-5, CM-6, CM-7
Check every file name and path CurWork refuses any file name or folder path that could write outside its own folders, and only uploads to the folders the admin allows. SI-10, AC-3
Keep a record Each session writes a log of who did what and where, without any secrets. The log goes to S3 when the biller finishes. When AWS refuses something, the message says exactly what was refused. AU-2, AU-3, AU-9, AU-12
Show a warning banner if needed Admins can turn on a "system use" notice that users must accept when CurWork starts. AC-8
Trust only known building blocks Every Python package CurWork uses is locked to an exact version and fingerprint. Each Windows build runs all the tests, stops if any package has a known security hole, and writes a list of everything inside it (an SBOM). SR-3, SR-4, RA-5, SI-2, CM-14
Test it like an attacker would Besides the normal tests, we test against real AWS to prove billers can't do what they shouldn't. Nobody tests by hand until every automated test passes. SA-11, CA-2
Keep AWS details out of the code Account numbers, sign-in addresses and profile names live in one private file that's never uploaded. Git checks block any upload that contains them. AC-22, IA-5

This table describes how we built and tested CurWork. It isn't a certification or approval under NIST, FedRAMP or any other program. To report a security problem, see SECURITY.md.

What's in this repository

CurWork-app/            The app itself
  curwork.py                   The CurWork window
  curwork_admin.py             The CurWork Admin Settings app, built as its own app for admins
  curwork_settings_form.py     The settings form both apps show (read-only in CurWork)
  curwork_style.py             The fonts, colours and spacing both apps use
  curwork_core.py              S3, sign-in, settings and file handling
  curwork_help.py              The tips and Help text
  assets/                      The app icon
  iam/                         The AWS permission policies for billers and the bucket
  tests/                       Automated tests
  build_exe.ps1                Builds CurWork.exe and CurWorkAdmin.exe on a Windows machine
  README.md                    The full app guide
  ADMIN_AND_SECURITY_GUIDE.md  Setup and security guide for admins
WINDOWS.md                     How to set up, test and run CurWork on Windows 11
MAC_HAND_TEST.md               The checklist for testing CurWork by hand on a Mac
SECURITY.md                    How to report a security problem
THIRD_PARTY_NOTICES.md         The licences of the software CurWork uses
run_windows_tests.ps1          Runs all the automated tests on Windows
CurWork_Test_Menu.command      The Mac test menu (start here to test)
*.command                      The test scripts the menu runs
tools/                         Helper scripts for the tests, and the script that draws Exhibit 4 from the official AWS icons
sample-data/                   Made-up cost report workbooks (no real customer data)
curwork_test.env.example       Template for your private test settings
.githooks/                     The checks that stop AWS details being uploaded
docs/diagrams/                 The diagrams in this README
docs/demo/                     The animated demo (web page and a short loop), published at scriptbuzz.github.io/curworks
docs/brand/                    The banner and the GitHub social preview image

Some files are never uploaded to GitHub. The .gitignore file keeps them out:

  • the laptop settings file, because it names the real sign-in setup;
  • your private test settings file (curwork_test.env);
  • each user's own preferences;
  • test results and logs;
  • the built apps (CurWork.app, CurWork Admin.app, CurWork.exe and CurWorkAdmin.exe) and the Python setup folder (.venv);
  • the 116 MB test workbook, because GitHub won't take files over 100 MB. You can make it again with tools/make_large_sample.py.

For billers

The animated demo plays these steps from start to finish. It uses made-up sample data.

First, start CurWork and click Sign in. Then finish signing in in the browser window that opens. After that, each step has its own tab:

  1. On the 1. Download from S3 tab, open a customer folder, pick a month or some files, and click Download selected.
  2. On the 2. Work in Excel tab, see your In and Out folders. Run your macros as usual: open the files from In and save the results to Out.
  3. On the 3. Save in S3 tab, check the result type and the customer/month folder, then click Save all new or changed in S3.
  4. Close the files in Excel and click 4. Finish and clean up at the bottom right of the window.

If you're not sure what something does, point at it to see a tip, click ? Help for this step on a tab, or press F1 for Help. The full guide is CurWork-app/README.md.

For admins

Read the Admin and Security Guide. It covers the S3 bucket and folders, the biller permissions (the files are in iam/), the laptop settings file, the settings kept in Parameter Store and the CurWork Admin Settings app, how to roll CurWork out, and how each security control is met.

Testing on a Mac

The Mac test kit tests CurWork against a real AWS test account, signed in with the same limited access billers get. It's only for testing. Never give these scripts to billers.

The first time, after you download the repository:

  1. Install Python 3.10 or newer and the AWS CLI version 2. Don't use the Python 3.9 that comes with macOS.
  2. Make a copy of curwork_test.env.example called curwork_test.env. Fill in your test account number, your admin AWS CLI profile, your company's AWS sign-in address and its Region. This file stays on your Mac and is never uploaded.
  3. Turn on the upload checks by running git config core.hooksPath .githooks.
  4. You don't need the admin settings file for testing. Menu option 3 makes a test one for you. For real use, get the file from your admin.

After that, double-click CurWork_Test_Menu.command. Under each option the menu tells you when to use it, what it does, what it changes, and whether it passed last time.

# Option What it does
1 Check this Mac Checks that Python, the window toolkit and the AWS CLI work, installs what CurWork needs, and runs the tests
2 Clean up old test items Finds everything earlier tests left behind, even after a crash. You choose what to delete, then type confirm
3 Create the test bucket Makes a locked-down test bucket, uploads the sample files, points CurWork at it, and then does option 4. It checks everything at the end
4 Set up biller test access Gives you a test sign-in with the same limited access billers get, so you can test exactly what they'd see
5 Upload the large sample Puts the 116 MB, 3.2-million-row test workbook into the test bucket
6 Check why something is refused Changes nothing. Shows which permissions the test sign-in has and exactly what AWS refuses
7 Build and open CurWork.app Builds the Mac app with its own name and icon. It only opens the app if the app's self-check passes
8 Run all automated tests Runs every automated check, including real AWS tests and the check for AWS details in the code. Run this before you test anything by hand.
9 Start CurWork from source Starts CurWork straight from the code, without building the app
10 Clean up when finished The same as option 2
11 Reset everything Deletes every test item, then does option 3 again

Every script that creates or deletes anything in AWS asks you to type confirm first, and then checks that it worked. Most scripts save what happened in a file ending in _results.txt, which is never uploaded.

Testing on Windows 11

WINDOWS.md takes you from a fresh Windows 11 PC to a tested CurWork.exe: the tools to install, your private test settings, the build, the automated tests (run_windows_tests.ps1) and a checklist for testing by hand. It uses the test bucket and biller test sign-in made by the Mac test kit.

Windows testing hasn't been done yet. It's waiting for approval.

Keeping AWS details out of GitHub

Exhibit 3: How AWS details stay off GitHub. Private values live only in curwork_test.env on your Mac. A check before every commit and another before every push block account numbers, sign-in addresses, email addresses, keys, anything from curwork_test.env, and hidden tags in image files.

Your account number, sign-in address and profile names are only stored in curwork_test.env, which never leaves your Mac. Before every commit and every upload to GitHub, a check (tools/check_no_aws_details.sh) looks for AWS account numbers, AWS sign-in addresses, email addresses, access keys, private keys, and anything from curwork_test.env. If it finds any, it stops the upload and tells you which file to fix. Menu option 8 runs the same check. This follows NIST SP 800-53 control AC-22, which is about keeping sensitive details out of public places.

License and disclaimers

  • It's private. CurWork belongs to FPT. Only people FPT approves may use it, and only for FPT's own work. See the LICENSE.
  • It's an early test version. It isn't approved for real billing or financial reporting yet. Don't rely on it for that until FPT approves it.
  • There's no warranty. Check every result yourself. FPT isn't responsible for errors or losses.
  • It isn't certified. Mentions of NIST, FedRAMP or other standards describe how we designed it, not an official approval.
  • It isn't made by AWS, Microsoft or Apple. Their product names are their trademarks.
  • It uses some open source parts. Those parts keep their own licenses, listed in THIRD_PARTY_NOTICES.md.

Where things stand

This is Beta 0.017, a draft. We've tested it on a Mac against real AWS, signed in with the limited biller access, and all automated tests pass. We haven't tested it yet with the real Excel macros. Windows testing hasn't been done yet either. It's waiting for approval. The Windows scripts and steps are written and ready for when it's approved. The Admin and Security Guide lists the decisions that are still open.


DRAFT - For Internal Use (FPT) · Beta 0.017 · Updated 2026-11-23 02:25 UTC · Modified by: mbitar

About

No description, website, or topics provided.

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages